1.1.8 • Published 12 months ago

i18next-cli-language-detector v1.1.8

Weekly downloads
15
License
MIT
Repository
github
Last release
12 months ago

i18next-cli-language-detector

npm ci codecov

i18next third-party language detector for CLI.

https://user-images.githubusercontent.com/19276905/124214133-b8c69c80-db2c-11eb-82f3-d529c80456c7.mov

> See examples

Installation

yarn add i18next i18next-cli-language-detector

Usage

Add .use(I18nextCLILanguageDetector) to your initialization part of i18next as following:

import i18next from 'i18next';
import I18nextCLILanguageDetector from 'i18next-cli-language-detector';

i18next
  .use(I18nextCLILanguageDetector)
  .init();

Supported environment variables

i18next-cli-language-detector refers following variables to determine which language to activate.

  • LC_ALL
  • LC_MESSAGES
  • LANG
  • LANGUAGE

As for the format of these variables, see documentation of Gettext.

Related projects

License

MIT

1.1.8

12 months ago

1.1.7

1 year ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.1

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.1.0-rc1

2 years ago

1.0.1-rc1

2 years ago

1.0.0

4 years ago

0.0.1

4 years ago

0.0.1-rc6

4 years ago

0.0.1-rc5

4 years ago

0.0.1-rc4

4 years ago

0.0.1-rc3

4 years ago

0.0.1-rc2

4 years ago

0.0.1-rc1

4 years ago