Package Exports
- validator-form-data
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (validator-form-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
i18neo
Google CLI translator to generate i18n files.
Installation
Requirements
- node >= 4.0.0
With npm
$ sudo npm install i18neo -gWith yarn
$ sudo yarn global add i18neoOptions
| Flag | alias | type | Description |
|---|---|---|---|
| --list | -l | null | List availables languages |
| --help | -h | null | Show help info |
| --native | -n | string | Source language |
| --idioms | -i | string | Languages to translate |
| --file | -f | file | File of texts to be translated |
| --text | -t | string | Text to be translated |
| --output | -o | file - directory | Directory 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.jsonGet translation and spit in a directory
$ i18neo -t "Hello word" -i es -o languages // output: · output: languagesGet translation from multiple languages and spit in a directory
$ i18neo -t "Hello word" -i es,fr,uk,zh-HK -o languages // output: · output: languagesGet the translation of a file and spit in a directory
$ i18neo -f base.json -i es,fr -o languages // output: · output: languagesContributing
- Fork it ( https://gitlab.com/casthielle/i18neo/forks )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request