jaydeetay / android-i18n-csv

Ability to convert string resources to/from csv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

android-i18n-csv

Ability to convert string resources to/from csv. Useful mainly if translators are not able to deal with string.xml resource files.

Installation

Install nodejs and run

npm install

from this directory to get the dependencies.

Export

node export.js --res /path/to/res --wantedlangs it,de,fr,nl (optional)

The command above will generate a csv file with all the required columns in order to manage translations for the given languages. NOTE: wantedlangs not yet implemented

Import

node import.js --csv /path/to/strings.csv --deflang en --folderout path/to/projectfolder

This command will use as source a given csv file ( that must use the same format of the csv files generated from the export command )

General usage

Original string resource files are tricky to most non-developer-humans to read/edit. By importing the generated csv file into googledrive you can share a spreadsheet to the translation team which can co-edit.

Once the translation team finished the task on Google Drive you can Download the result as csv and then use the import routine.

About

Ability to convert string resources to/from csv


Languages

Language:JavaScript 100.0%