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
moduleexports = // 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: ;
Run
Can be run in CLI and in Node. The API is synchronous, but it may change in the future.