mirror of
https://github.com/status-im/react-native-languages.git
synced 2025-02-28 07:20:40 +00:00
Update README.md
This commit is contained in:
parent
e08053b4bd
commit
3fb2eaa7fc
22
README.md
22
README.md
@ -1,6 +1,6 @@
|
||||
# 🌐 react-native-languages
|
||||
# 🌍 react-native-languages
|
||||
|
||||
React Native properties and methods related to the language of the device.
|
||||
Get the user preferred languages and use the library of your choice to translate your app !
|
||||
|
||||
[](https://badge.fury.io/js/react-native-languages) [](https://www.npmjs.org/package/react-native-languages)   [](https://github.com/prettier/prettier)
|
||||
|
||||
@ -10,17 +10,15 @@ React Native properties and methods related to the language of the device.
|
||||
|
||||
- Android SDK Build-tools 25.0.3
|
||||
|
||||

|
||||
|
||||
## Installation
|
||||
|
||||
#### Using yarn
|
||||
```
|
||||
```bash
|
||||
$ yarn add react-native-languages
|
||||
```
|
||||
|
||||
#### Using npm
|
||||
```
|
||||
```bash
|
||||
$ npm i react-native-languages --save
|
||||
```
|
||||
|
||||
@ -30,7 +28,7 @@ $ npm i react-native-languages --save
|
||||
|
||||
#### Using react-native link (react-native >= 0.29)
|
||||
|
||||
```
|
||||
```bash
|
||||
$ react-native link react-native-languages
|
||||
```
|
||||
|
||||
@ -41,7 +39,7 @@ $ react-native link react-native-languages
|
||||
pod 'ReactNativeLanguages', :path => '../node_modules/react-native-languages'
|
||||
```
|
||||
|
||||
```
|
||||
```bash
|
||||
$ pod install
|
||||
```
|
||||
|
||||
@ -105,10 +103,6 @@ console.log('language', ReactNativeLanguages.language);
|
||||
console.log('languages', ReactNativeLanguages.languages);
|
||||
```
|
||||
|
||||
### Add project's supported localizations (iOS)
|
||||
|
||||

|
||||
|
||||
### Listening for languages changes (Android)
|
||||
|
||||
```javascript
|
||||
@ -120,6 +114,6 @@ ReactNativeLanguages.addEventListener('change', ({ language, languages }) => {
|
||||
});
|
||||
```
|
||||
|
||||
#### ⚠️ Note
|
||||
### Add project's supported localizations (iOS)
|
||||
|
||||
As iOS reloads your application on languages change, there is no need to perform this step on this platform.
|
||||

|
||||
|
Loading…
x
Reference in New Issue
Block a user