Fixes in README
This commit is contained in:
parent
5f4e3b0fec
commit
457e84168f
|
@ -1,6 +1,6 @@
|
||||||
# react-native-i18n
|
# react-native-i18n
|
||||||
|
|
||||||
Integrates [I18n.js](https://github.com/fnando/i18n-js) with React Native. Uses the device's current locale as default.
|
Integrates [I18n.js](https://github.com/fnando/i18n-js) with React Native. Uses the device's locale as default.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -31,8 +31,9 @@ I18n.translations = {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This will render `Hi!` for devices with the English locale, and `Bonjour` for devices with the French locale.
|
This will render `Hi!` for devices with the English locale, and `Bonjour!` for devices with the French locale.
|
||||||
For more info about I18n.js methods and settings see [its documentation](https://github.com/fnando/i18n-js#using-i18njs-with-other-languages-python-php-).
|
|
||||||
|
For more info about I18n.js methods (`localize`, `pluralize`, etc) and settings see [its documentation](https://github.com/fnando/i18n-js#using-i18njs-with-other-languages-python-php-).
|
||||||
|
|
||||||
### Device's locale
|
### Device's locale
|
||||||
You can get the device's locale with the `RNI18n` native module:
|
You can get the device's locale with the `RNI18n` native module:
|
||||||
|
|
Loading…
Reference in New Issue