1.0.34 • Published 1 year ago
@os-team/i18next-react-native-language-detector v1.0.34
@os-team/i18next-react-native-language-detector

The i18next language detector, which is used to detect the user's language in React Native.
Usage
Install the package using the following command:
yarn add @os-team/i18next-react-native-language-detector
Example of usage:
import i18next from 'i18next';
import { initReactI18next } from 'react-i18next';
import RNLanguageDetector from '@os-team/i18next-react-native-language-detector';
i18next
.use(RNLanguageDetector) // Add the language detector
.use(initReactI18next)
.init({
fallbackLng: 'en',
supportedLngs: ['en', 'ru'],
ns: [],
defaultNS: undefined,
resources: {
en: {
common: require('./locales/en/common.json'),
},
ru: {
common: require('./locales/ru/common.json'),
},
},
interpolation: {
escapeValue: false,
},
});
export default i18next;
1.0.34
1 year ago
1.0.33
1 year ago
1.0.32
1 year ago
1.0.31
2 years ago
1.0.26
2 years ago
1.0.29
2 years ago
1.0.28
2 years ago
1.0.27
2 years ago
1.0.30
2 years ago
1.0.25
2 years ago
1.0.24
2 years ago
1.0.23
2 years ago
1.0.22
2 years ago
1.0.21
3 years ago
1.0.19
3 years ago
1.0.20
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.10
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago