Reputation: 2455
I am adding localization to my project. In the Info.plist, I have the array of localiztions I want: <key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>fr</string>
<string>de</string>
</array>
I then add a Localizable.strings resource, which I localized in the File inspector. I put the existing file in Base.lproj
, then added the english version. But Xcode doesn't let me add French or German localization versions for this resource.
This is rather simple, and I've done localization many times before. I don't understand why other languages are not available in the Xcode options. Documentation has not been helpful so far...
Note, I also have this key:<key>CFBundleDevelopmentRegion</key>
<string>fr_CA</string>
Whether I remove it or not, the output doesn't change.
Here's the options I have in the File inspector for the Localizable.strings:
What am I missing?
Upvotes: 1
Views: 1035
Reputation: 2455
I found the answer and posting it for anyone else who'd ran into this...
What I missed was to add localizations to the project itself. To do this,
File Navigator
. Here's an Xcode image of what to look for:
What pointed me in the right direction is Apple documentation.
Image of the doc in case the link breaks:
Upvotes: 2