1.1.2 • Published 6 years ago

i18neo v1.1.2

Weekly downloads
8
License
MIT
Repository
gitlab
Last release
6 years ago

i18neo

npm version license npm downloads

Google CLI translator to generate i18n files.

Installation

Requirements

  • node >= 4.0.0

With npm

$ sudo npm install i18neo -g

With yarn

$ sudo yarn global add i18neo

Options

FlagaliastypeDescription
--list-lnullList availables languages
--help-hnullShow help info
--native-nstringSource language
--idioms-istringLanguages to translate
--file-ffileFile of texts to be translated
--text-tstringText to be translated
--output-ofile - directoryDirectory or file where the translations are stored

Usage

From terminal

i18neo tries to automatically detect the language of what will be translated. If you wish, you can add the "--native" or "-n" mark to specify the language of the original text.

Get simple text translation

$ i18neo -t "Hello word" -i es      // output: { text: "Hola mundo" }

Get translation and spit in a file

$ i18neo -t "Hello word" -i es -o translations.json    // output: · output: translation.json

Get translation and spit in a directory

$ i18neo -t "Hello word" -i es -o languages    // output: · output: languages

Get translation from multiple languages ​​and spit in a directory

$ i18neo -t "Hello word" -i es,fr,uk,zh-HK -o languages    // output: · output: languages

Get the translation of a file and spit in a directory

$ i18neo -f base.json -i es,fr -o languages    // output: · output: languages

Contributing

  1. Fork it ( https://gitlab.com/casthielle/i18neo/forks )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago