Socket
Socket
Sign inDemoInstall

catbee-i18n-cli

Package Overview
Dependencies
70
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    catbee-i18n-cli

gettext string extractor on js for catbee-i18n packages


Version published
Weekly downloads
4
decreased by-42.86%
Maintainers
1
Install size
4.07 MB
Created
Weekly downloads
 

Readme

Source

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-cli

Usage

in your app directory can run

i18n init cs_CZ

i18n extract
i18n update
i18n archive
i18n po2json

And now you we have next:

l10n
├── cs_CZ
│   └── LC_MESSAGES
│       ├── messages.json
│       └── messages.po

i18n supports the following commands

  • init [locale] - Init new locale
  • extract [dirs...] - Extract new phrases for translate
  • update - Update po files with new extracted phrases
  • archive - Archive updated .po files to archive with name `po.{branch_name}.zip
  • prepare [dirs...] - extract, update and archive with one shot
  • po2json - 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-holder option
  • -b --bugs-address - PyBabel --bugs-address option

Keywords

FAQs

Last updated on 02 Sep 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc