1.1.8 • Published 2 years ago
i18next-cli-language-detector v1.1.8
i18next-cli-language-detector
i18next third-party language detector for CLI.
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
- y18n - I18n utility, used by yargs, a CLI framework for Node.js
- i18next-browser-languageDetector - i18next language detector for browsers
- i18next-express-middleware - i18next language detector for express
- i18next-react-native-languageDetector - i18next language detector for React Native
License
MIT
1.1.8
2 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.1
4 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.0
4 years ago
1.0.1
4 years ago
1.1.0-rc1
4 years ago
1.0.1-rc1
4 years ago
1.0.0
5 years ago
0.0.1
5 years ago
0.0.1-rc6
5 years ago
0.0.1-rc5
5 years ago
0.0.1-rc4
5 years ago
0.0.1-rc3
5 years ago
0.0.1-rc2
5 years ago
0.0.1-rc1
5 years ago