1.1.0 • Published 9 years ago
catbee-i18n-cli v1.1.0
catbee-i18n-cli
Wrapper for PyBabel configured for extract translates with catbee-i18n and catbee-i18n-handlebars
Installation
To work with cli you need global installed python2.7 must install python module babel.
And then
npm install -g catbee-i18n-cliUsage
in your app directory can run
i18n init cs_CZ
i18n extract
i18n update
i18n archive
i18n po2jsonAnd now you we have next:
l10n
├── cs_CZ
│ └── LC_MESSAGES
│ ├── messages.json
│ └── messages.poi18n supports the following commands
init [locale]- Init new localeextract [dirs...]- Extract new phrases for translateupdate- Update po files with new extracted phrasesarchive- Archive updated .po files to archive with name `po.{branch_name}.zipprepare [dirs...]-extract,updateandarchivewith one shotpo2json- Transform .po files to .json for your app
and line options:
-d--directory- Directory with translates l10n-y--young- Do not remove old translates-a--archive-name- Archive name-c--copyright-holder- PyBabel--copyright-holderoption-b--bugs-address- PyBabel--bugs-addressoption