Skip to content
 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This script converts a csv file of translations into iOS .strings files and vice-versa.

Requirements

  • Needs fastercsv with ruby < 1.9

Usage

Convert from CSV file to .strings files

./convert.rb filename.csv

The CSV file needs one column per language and must have headers (for output filenames)

Convert from .strings files to CSV file Translations.csv (configurable)

./convert.rb filename1.strings filename2.strings

or to convert all xx.lproj/Localizable.strings to CSV

./convert.rb

Place i18n_config.rb (edit if needed) in the folder with your xx.lproj and call the script from there

cp .i18n_config.rb iOSProject/resources/i18n_config.rb
cd iOSProject/resources
script/path/convert.rb

Todo

  • Add option for output CSV file
  • Add tests suite

About

This ruby script converts a CSV file of translations to Localizable.strings files and vice-versa

Resources

Stars

1 star

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages