Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LocoPipe

LocoPipe is a simple tool that you can use to integrate into a simple Localization pipeline.

The idea is that it takes a TSV file with specific column titles, and converts them into Localizable.strings files, set up in the way that Apple likes them (i.e. the .lproj folder structure.)

Basically you have 2 initial columns (Comments, iOS Localization Key), then any subsequent columns are your language codes (e.g. en, de, en_GB, de_AT, etc.)

It ALSO can take existing Localizable.strings files that you didn't have managed, and parse them into a TSV file so that you can import that into a table to become your master. This saves a LOT of manual labour. (See Further Below)

Parsing TSV

usage:

locopipe Localizable -i ./inputFilename.tsv -o ../../Resources/Localization

where Localizable is the name of the output files (i.e. Localizable.strings) in the language folders

Caveats:

  • It is up to you to manage your table that exports the TSV file.
  • We expect there to be a value for each entry, so perhaps highlight your table cells if cells are empty

Roadmap:

  • Set the first language column to be the reference language
  • Any missing entries will use the reference value
  • Any empty cells in the reference language will omit that key-value pair in ALL languages

Generating TSV

Say you have a folder structure of

Localization
    ├── en.lproj
        └── Localizable.strings
    └── de.lproj
        └── Localizable.strings

you would run locopipe with:

locopipe Localizable -i ./Localization -o ./Localization/LocalizationMaster.tsv --inverse -r en

this tells to run the 'inverse' parser, i.e. the generator, and you specify that "en" is the reference language code.

About

A Command line tool that can be used to convert a .tsv file to Localizable.strings files for iOS Projects.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages