Bundle Localizations

In the project build.settings file, add these language codes to a CFBundleLocalizations table within the settings → iphone → plist table. The order is not important, but make sure that each entry is the 2-character string value appropriate to the language, for example:

Add the CFBundleDisplayName and CFBundleName keys as the app defaults (see Project Build Settings for details). Note that these should reside inside the plist table but outside the CFBundleLocalizations table.

Localized Project Folders

The second step involves creating a localized project folder for each language in the root project directory alongside main.lua.

For each language that you specified in the CFBundleLocalizations table within build.settings, create a new xx.lproj folder in the app's root directory, where xx represents the 2-character language code.

Important

Each folder must be appended with .lproj. For instance, the proper folder name for English is en.lproj, not merely en.

Each folder must follow case-sensitive naming. For instance, the proper folder name for English is en.lproj, not EN.lproj.

Within each of these localized project folders, create a new text file titled InfoPlist.strings:

As the contents for each InfoPlist.strings file, specify both a CFBundleDisplayName and CFBundleName line with the proper title for that language, for example:

English (en.lproj/InfoPlist.strings)

CFBundleDisplayName = "Princess";
CFBundleName = "Princess";

Spanish (es.lproj/InfoPlist.strings)

CFBundleDisplayName = "La princesa";
CFBundleName = "La princesa";

Korean (ko.lproj/InfoPlist.strings)

CFBundleDisplayName = "공주 패션쇼";
CFBundleName = "공주 패션쇼";

Language Testing

Once the above steps are complete, you can test the bundle names locally to ensure that the localized names appear.

Change the device language setting via Settings → General → Language & Region and choose one of the languages within your localization setup. If you configured everything as outlined, the app name should appear as the name you defined for CFBundleDisplayName in the respective InfoPlist.strings file.

Disclaimer

Changing the device settings must be done entirely at your own risk, especially in regards to language settings. If you change the device language, ensure that you understand the options and menus that will allow you to revert the device to your native language. Corona Labs cannot be held responsible for any settings changes that are conducted without reasonable caution.