Skip to content
Josh Habdas edited this page Aug 6, 2015 · 10 revisions

Welcome to the ReactNativeLocalization wiki!

Testing your localization

Add code to project based on instructions in README. Then drop the following into your App to set the language used by the app at runtime (in this case we're using German):

[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:@"de", nil] forKey:@"AppleLanguages"];

The above trick was pulled from Change the application locale on the fly with iOS internationalization. For a listing of locales please refer to and help maintain the following gist: https://gist.github.com/jacobbubu/1836273.

Configuring Xcode to use localizations

In order to list your app as supporting multiple languages Xcode must be made aware of it. Trick Xcode into believing your app is localized by creating a Localizable.strings file and adding localizations to your project based as described on StackOverflow. These files can be blank, though it's a good idea to leave a comment as to why or figure out a way to use the strings file with this native module.

While you're localizing

Consider setting-up automated screenshots to take snaps of your app in various languages for the App Store. Stapshot is just one option for doing so.

Clone this wiki locally