Code Monkey home page Code Monkey logo

transync's Introduction

Transync

Transync is a npm module to synchronise translation files. The idea is to make sure a locale file has the same translation keys as a base file. It supports both JSON and YAML files.

npm install transync --save

Usage (CLI)

  Usage: transync [options]

  Options:

    -h, --help         output usage information
    -f, --from [from]  Base version file for sync
    -t, --to [to]      Version file to synchronize
    -q, --quiet        Disable informative output

Usage (Node.js)

var transync = require('transync')

transync({
  from: 'path/to/source.file',
  to: 'path/to/destination.file'
})

Examples

For instance, to make sure that the German locale has the same translation keys as the English one:

transync --from _data/en.yml --to _data/de.yml --quiet
var transync = require('transync')

transync({
  from: '_data/en.yml',
  to: '_data/de.yml',
  quiet: true
})

transync's People

Contributors

kittygiraudel avatar schmkr avatar eschaefer avatar

Stargazers

Habib Osaye avatar Chris Witko avatar Sundar Joshi avatar Reina avatar Sascha avatar Mac Alnakari avatar Thomas Bekaert avatar Siamak avatar Szabolcs Légrádi avatar Joan León avatar Lucas avatar

Watchers

Mac Alnakari avatar Richard Bausek avatar James Cloos avatar  avatar

Forkers

schmkr

transync's Issues

Restructure

Make the whole thing a function and provide a CLI API to use it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.