Document how to add locales in the Xcode project.

This commit is contained in:
Ognen Ivanovski 2016-03-04 22:29:08 +01:00
parent f7f72e1d8a
commit a62db8e25b
2 changed files with 15 additions and 4 deletions

View File

@ -23,6 +23,17 @@ If you're having any issue you can also try to install the library manually as f
Add `RNI18n.xcodeproj` to **Libraries** and add `libRNI18n.a` to **Link Binary With Libraries** under **Build Phases**.
[More info and screenshots about how to do this is available in the React Native documentation](http://facebook.github.io/react-native/docs/linking-libraries-ios.html#content).
You also need to add the **localizations** you intend to support to the iOS project. To do that open
your Xcode project:
```
$ open <your-project>.xcodeproj
```
and add the localizations you will support as shown here:
![adding locales](docs/adding-locales.png)
### Android
Add `react-native-i18n` to your `./android/settings.gradle` file as follows:
```

BIN
docs/adding-locales.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB