1.0.1 • Published 7 years ago
i18n-it v1.0.1
i18n-it
Summary
i18n-it produces translation for a given string set.
Installation
Install globally using npm,
npm install -g i18n-itor, if you are using yarn,
yarn global add i18n-itUsage
Synopsis
i18n-it TARGET_LANG_CODE BASE_TRANSLATION_FILE_PATH TARGET_TRANSLATION_FILE_PATHA translation file may look like this,
{
"section_1.translation_key_1": "A translation",
"section_2.translation_key_2": "Another translation"
}Example
If i18n-it was installed using any of the above mentioned method, you may invoke the CLI as the example as follows,
i18n-it ja ./src/locale/en.json ./src/locale/ja.jsonYou may also use npx as follows,
npx i18n-it ja ./src/locale/en.json ./src/locale/ja.jsonPlease note that, only JSON format is supported for now. Also, en is the default base language.
Contributing
If you are interested in contributing, please submit a pull request.