Fomahaut
Fomahaut

Reputation: 1212

Change Cordova plugin language on iOS

I'm building an app with Cordova 3.5 on iOS 7, and it's not for native English user. So I want change the plugin language, like "Use", "Retake" in camera, or "Done" on keyboard. I can't find any setting or option in Cordova doc, how to do that?

Upvotes: 3

Views: 2625

Answers (2)

FedeH
FedeH

Reputation: 1363

In your config.xml in the codrdova project, under the tag add this:

<edit-config file="*-Info.plist" mode="merge" target="CFBundleDevelopmentRegion">
            <string>Your_Language</string>
 </edit-config>

It will create an entry in the .plist file

<key>CFBundleDevelopmentRegion</key>
    <string>German</string>

of the ios project generated during the ionic cordova build ios process

Upvotes: 0

V-Xtreme
V-Xtreme

Reputation: 7333

I don't think that is provided in Cordova. Instead, you can do it in your Xcode project settings. In your project, select Info → Localization native development region and change it to your desired language.

Upvotes: 3

Related Questions