i18next-cli-language-detector
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.6 • Public • Published

    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

    Keywords

    Install

    npm i i18next-cli-language-detector

    DownloadsWeekly Downloads

    17

    Version

    1.1.6

    License

    MIT

    Unpacked Size

    13.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • neetshin