1.0.33 • Published 3 months ago

@os-team/i18next-react-native-language-detector v1.0.33

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 months ago

@os-team/i18next-react-native-language-detector NPM version BundlePhobia

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.33

3 months ago

1.0.32

3 months ago

1.0.31

5 months ago

1.0.26

10 months ago

1.0.29

8 months ago

1.0.28

10 months ago

1.0.27

10 months ago

1.0.30

7 months ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.19

2 years ago

1.0.20

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.10

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago