transflow
v1.4.0
Published
Translation Workflow Tool
Downloads
5
Readme
Transflow
Translfow is a Javascript Translation Workflow
Paradigm
- Define your data in pure JS objects
- Transflow generates commented PO files
- Edit or share the PO file for editing
- Run Transflow to compile them to JSON
Usage
Installation
npm install transflow
Config
module.exports = {
// mandatory props
entries: {
webapp: './src/strings/webapp.js',
landing: './src/strings/landing.js'
},
locales: ['en', 'fr'],
// optional props
localeDir: './locale',
genDir: './gen',
defaultLocale: 'en',
baseDir: require('path').join(__dirname, '.')
};
Run
Can be run in CLI and in Node. The API is synchronous, but it may change in the future.