Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaach/jsxgettext-recursive
Recursively extract strings for localization.
https://github.com/zaach/jsxgettext-recursive
Last synced: about 1 month ago
JSON representation
Recursively extract strings for localization.
- Host: GitHub
- URL: https://github.com/zaach/jsxgettext-recursive
- Owner: zaach
- Created: 2014-01-30T23:10:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-12-20T22:58:11.000Z (about 8 years ago)
- Last Synced: 2024-10-06T06:50:43.292Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jsxgettext-recursive
Recursively search and extract gettext strings.
## Install
npm install jsxgettext-recursive
## Example
```
var extract = require('jsxgettext-recursive');var walker = extract({
'input-dir': './app/scripts',
outputDir: './locales',
output: 'client.pot',
exclude: /dist/,
joinExisting: false,
keyword: 't',
parsers: {
'.js': 'javascript',
'.mustache': 'handlebars'
}
});walker.on('end', function() {
console.log('done!');
});
```Possible parsers include: `javascript`, `handlebars`, `jade`, `ejs`, `jinja`.