Reputation: 12499
I need to set Spanish as development language for an iOS app. I'm already using Xcode 6, and I changed the Localization native development region
entry in app's Info.plist
(CFBundleDevelopmentRegion
) from "en" to "es". However, in Project > Info > Localizations, English remains set as Development Language.
As said in Information Property List Key Reference, CFBundleDevelopmentRegion
specifies the default language. I need to set Spanish to the default language, what am I missing?
Thanks
Upvotes: 101
Views: 105015
Reputation: 21
Changing the default localization is now natively supported as of Xcode 14.3. It can be configured from the language menu in the project editor’s Info tab.
Upvotes: 2
Reputation: 4918
For Xcode 9 through 13:
Close Xcode.
Open Xcode: Your project info should now show the language name with Development Language next to it.
Upvotes: 97
Reputation: 459
For someone that needs help like I did, I have two targets, one I want to be EN Base localization and second target I need to be another language. The option mention above: "change projectname.xcodeproj/project.pbxproj and search for developmentRegion and change ..." doesn't work for me because of targets.
What worked for me, Xcode 11.5, is that only I need to change the language code in the "Localization native development region" for that particular target and it works, no need to change anything in projectname.xcodeproj/project.pbxproj P.S. Here "Localization native development region" must go country code like fr_Fr or in my case hr for Croatian
Upvotes: 0
Reputation: 5670
Here's how you can do this:
Info.plist
, change the development region to the language that you want to be your base language. Note that the property is a bit misnamed, because its value should be a language code (with an optional country code), rather than a region or country code.projectname.xcodeproj/project.pbxproj
and search for developmentRegion
. You should see a line like developmentRegion = English;
. Change this to reference the same language you put in your Info.plist
file.Here's an example of the result for me using fr
as the Base language:
Upvotes: 127
Reputation: 970
open your target -> info -> change "Localization native development region" to your language
Upvotes: 3
Reputation: 654
In your project's .xcodeproj file, search for the string developmentRegion
. Supposedly, it says "English" right now. If you change it to "Spanish", Xcode 6 should recognize Spanish as your project's default localization language in the "Info" tab as long as you add "Spanish" to the list.
You can read more about this topic at http://eschatologist.net/blog/?p=224
Upvotes: 41