node-gettext-generator
v0.2.13
Published
![npm](https://img.shields.io/npm/v/node-gettext-generator.svg) ![downloads](https://img.shields.io/npm/dt/node-gettext-generator.svg) ![license](https://img.shields.io/npm/l/node-gettext-generator.svg) ![github-issues](https://img.shields.io/github/issu
Downloads
2
Readme
Node Gettext Generator
Requirements
Node Gettext Generator requires Node v0.10.42
or greater.
Installation
Add dependency to package.json
{
...
"dependencies": {
"node-gettext-generator": "^0.2.9"
}
...
}
Example
var generator = require('node-gettext-generator');
generator.process({
extract:{
path :['./src/views'],
target:'./src/locale/templates.js'
},
params : {
name: 'messages',
keywords:['_'],
source:['./src/views','./src/js/app','./src/locale'],
target:'./locales',
locales:['ru','en','uk','lv','cs','fr','sk']
},
javascript:{
namespace:'i18n'
}
});