Search code examples
iosios8ios-app-extensioncustom-keyboard

ios 8 custom keyboard Change language in Setting page


I am writing custom keyboard. When I add my keyboard in setting, I saw like this. It show english.

Is it possible to change "English" as other? Is it in plist ? Or where can I change?

enter image description here


Solution

  • Yes, actually this setting is hidden in info.plist of the extension, not the one of the container, under NSExtension -> NSExtensionAttributes.

    For changing that, right click on info.plist and select Open as source code. and then find PrimaryLanguage

    This string value, en-US (English for the US) by default, expresses the primary language for your keyboard using the pattern <language>-<REGION>. You can find a list of strings corresponding to languages and regions at This Link.

    Just change it to your custom language and voila! :)