Giter Site home page Giter Site logo

babelish's Introduction

Build Status Code ClimateCoverage Status Gem Version

Babelish : Chaotically confused, like Babel

Originally created to deal with localizedStrings files (aka CSV-to-iOS-Localizable.strings-converter), this command tool now converts a csv file of translations into the below file formats and vice-versa:

  • .strings (iOS)
  • .xml (Android)
  • .json
  • .php

It can also fetch the csv file from GoogleDrive.

Installation

gem install babelish

Requires Ruby 1.9.2 or above.

Usage

› babelish help
Commands:
  babelish android2csv -i, --filenames=one two three              # Convert .xml files to CSV file
  babelish csv2android --filename=FILENAME -L, --langs=key:value  # Convert CSV file to .xml
  babelish csv2json --filename=FILENAME -L, --langs=key:value     # Convert CSV file to .json
  babelish csv2php --filename=FILENAME -L, --langs=key:value      # Convert CSV file to .php
  babelish csv2strings --filename=FILENAME -L, --langs=key:value  # Convert CSV file to .strings
  babelish csv_download --gd-filename=GD_FILENAME                 # Download Google Spreadsheet containing translations
  babelish help [COMMAND]                                         # Describe available commands or one specific command
  babelish json2csv -i, --filenames=one two three                 # Convert .json files to CSV file
  babelish php2csv -i, --filenames=one two three                  # Convert .php files to CSV file
  babelish strings2csv -i, --filenames=one two three              # Convert .strings files to CSV file
  babelish version                                                # Display current version

Options:
  [--verbose], [--no-verbose]

You can use a configuration file to hold all your commandline arguments into a file. Place a .babelish file (YAML) in your repo where you will run the command. See .babelish.sample file in the doc folder. as the possible values.

For previous CSV-to-iOS-Localizable.strings-converter, rename your .csvconverter into .babelish.

Contributing

Want to add another support for a new format or/and usage? Add a new feature? Fix a bug?

Just create a pull request with a branch like feature/<nameofbranch> or hotfix/<nameofbranch>.

Development

Run bundle install to install all the dependencies. Tests are done with Test::Unit so run rake test to run all the test suite.

Todo & Known issues

See GitHub issues

babelish's People

Contributors

netbe avatar zomfg avatar neoklosch avatar bitdeli-chef avatar nschum avatar

Watchers

James Cloos avatar Matthijs Piek avatar

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.