transflow

1.4.0 • Public • Published

Transflow

Build Status Coverage Status

Translfow is a Javascript Translation Workflow

Paradigm

  1. Define your data in pure JS objects
  2. Transflow generates commented PO files
  3. Edit or share the PO file for editing
  4. 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.

Readme

Keywords

Package Sidebar

Install

npm i transflow

Weekly Downloads

2

Version

1.4.0

License

MIT

Unpacked Size

98.1 kB

Total Files

24

Last publish

Collaborators

  • romainbessuges