Search code examples
iosxcodecordovalocalizationproject

How to localize Cordova iOS projects?


I've been searching on the Internet but none of the solutions I found seems to work so, my question is with Xcode 6, how we could localize a Cordova app?

The image below illustrates the problem, I tested the app in the iOS Simulator (I changed the language settings of the simulator to Spanish) but the context menu in inputs or some plugin like camera are still in English. I changed the "Localization native development region" to "es" but still in English. Also I have Localizable.strings in the es.lproj folder.

context menu


Solution

  • Finally I figured out after some digging and with the help of a guy that greatly assisted me in other forum, you have to put this in the project .plist this:

    <key>CFBundleLocalizations</key>
    <array>
        <string>es</string>
    </array>
    

    Each string is the language you want to localize.