Skip to content

This is a python code converting i18n .csv to .xml (Android) and Localizable.strings (iOS).

License

Notifications You must be signed in to change notification settings

matthew-siu/i18n-csv2scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

If you want to convert the table in the Google Sheets directly, I highly recommend you to check out this method: https://github.com/matthew-siu/i18n-googlesheet-translator

Guide for build-script.py

This is a guide for generating EN, TC and CN scripts for .xml (Android) and .strings (iOS) on Terminal.

  1. Edit the spreadsheet and follow this patterns:
Android iOS
id en tc cn id en tc cn
lable_hello Hello 你好! 你好! lable_hello Hello 你好! 你好!
  1. Export to .csv

  2. Make sure python2.7 has installed on your OS. (python -V)

  3. Run the commands: a. For Android i18n: python build-script.py [.csv path] -a

    b. For iOS i18n: python build-script.py [.csv path] -i

  4. Paste the texts to your project file.

About

This is a python code converting i18n .csv to .xml (Android) and Localizable.strings (iOS).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages