Skip to content

hotoo/spm-xgettext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GUN xgettext-like for spm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published