Build Status Code ClimateCoverage Status Gem Version

Docker

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 2.0.0 or above.

Or download Latest Release.

Or via docker: docker run netbe/Babelish babelish help

Usage

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. In case you need to reset the Google Drive token you have to delete the .babelish.token file. 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.

Note for docker: In order to export the output of a conversion, you will need to pipe the result out of the container. An example would be

For more details, check the documentation: https://github.com/netbe/Babelish/wiki/How-to-Use

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