Socket
Socket
Sign inDemoInstall

i18next-cli-language-detector

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-cli-language-detector

i18next language detector module for CLI


Version published
Weekly downloads
90
decreased by-78%
Maintainers
1
Weekly downloads
 
Created
Source

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.

License

MIT

Keywords

FAQs

Package last updated on 28 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc