11

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

Andrew
  • 15,357
  • 6
  • 66
  • 101
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120

2 Answers2

17

If you want to support multiple languages in the same keyboard you can type "mul" for "PrimaryLanguage" in your keyboard extensions info.plist.

That will display the text "Multiple Languages".

Rasmus Porsager
  • 184
  • 1
  • 6
  • 1
    Thank you! It works, but is there any place where it is documented? – Pavel Alexeev Dec 02 '14 at 21:21
  • 1
    @PavelAlexeev You can find `"mul" // verMultilingual` in [CFLocaleIdentifier.c](http://www.opensource.apple.com/source/CF/CF-476.14/CFLocaleIdentifier.c). And this file is [documented](https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Keyboard.html) by Apple – Eric Chai Dec 25 '14 at 23:12
  • Setting this key to "mul" changes the text correctly, but also messes up the key bindings when using an external keyboard on iPad :( – Daniel Saidi Jun 23 '21 at 13:19
11

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! :)

henon
  • 2,022
  • 21
  • 23
Reza_Rg
  • 3,345
  • 7
  • 32
  • 48