Skip to content

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

Notifications You must be signed in to change notification settings

digitalhoax/CSV-to-iOS-Localizable.strings-converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Climate

Introduction

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

Requirements

  • Needs fastercsv with ruby < 1.9

Setup

Add the project as a gitsubmodule in your iOS project's git repository. Use tag 0.1.5

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

See GitHub isssues

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published