Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

easy-i18n-cli2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-i18n-cli2

easy-i18n-cli2

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

easy-i18n-cli2

NPM version CI Test coverage node version npm download

i18n cli

Installment

$ npm i easy-i18n-cli2 --save-dev

Configuraion

// i18n.config.js
module.exports = {
  srcDirs: [
    'test/fixtures/**/*.*',
  ],
  distDir: __dirname,
  tokenName: '__i18n',
};
...
  "translate": "easy-i18n-cli2 -c ./i18n.config.js",
  "translate:check": "npm run translate -- --check",
...

Use web modules

import locale from 'easy-i18n-cli2/src/locale';
import enObj from './en-US';

export const __i18n = locale({
  en: enObj,
  useEn: () => true,
});

Use APIS

$ ./bin/easy-i18n-cli2.js -c ./google-translate.config.js

Contributors


xudafeng


snapre


ilimei

This project follows the git-contributor spec, auto updated at Wed Feb 01 2023 17:48:43 GMT+0800.

License

The MIT License (MIT)

Keywords

FAQs

Package last updated on 08 Feb 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