spm-xgettext

0.1.1 • Public • Published

Spm xgettext

David Status

spm-xgettext is a scaffolding tool used to automate project locale creation.


Install

$ npm install spm-xgettext -g

Usage

$ spm-xgettext [locales]

If you have installed spm2:

$ spm xgettext [locales]

package, category and domain

GNU gettext using package, category and domain to set locale message and resource paths.

CMD gettext not need this, but default using:

  package locale     category  domain
    |        |          |        |
  ------ -------- ...-------- -------
./locale/{locale}/LC_MESSAGES/name.js

The default path is ./locale/{locale}/LC_MESSAGES/module_name.js, you can config ~/.spm/spmrc

[xgettext]
locale_path = ./locale/{locale}/LC_MESSAGES.js

/spm-xgettext/

    Package Sidebar

    Install

    npm i spm-xgettext

    Weekly Downloads

    3

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • hotoo