Code Rage
Code Rage

Reputation: 615

How to localize the display bundle name of an ionic app on xcode 7.3

I have read the previous stackoverflow posts as well as Apple documentation on this matter, trie countless attempts, and none localizes the name under icon name on ios on my ionic apps on xcode 7.3.

Here is the minimum steps example:

$ ionic start foobar
$ edit config.xml to foobar
$ ionic build

In xcode 7.3
Menu->Editor-> Export Localizations
Edit the generated file to a french translation, and imported again
Remove Display Bundle Name from Info.plist
Set the simulator to French

Whatever the values I set on CFBundleDisplayName or CFBundleName, it always displays: foobar.

Here are some screenshots:

enter image description here

enter image description here

enter image description here

Upvotes: 2

Views: 1463

Answers (2)

Gary Lip
Gary Lip

Reputation: 336

OK, the name of .strings file should always be 'InfoPlist.strings', please try to rename it. It's not about the xcode version and it's ok to add CFBundleDisplayName key in info.plist file

Upvotes: 3

Gary Lip
Gary Lip

Reputation: 336

Can you try to insert this in info.plist

<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>

Here is the reference from iOS development library and search for CFBundleDisplayName https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-110725

Upvotes: 0

Related Questions