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
This is a guide for generating EN, TC and CN scripts for .xml (Android) and .strings (iOS) on Terminal.
- Edit the spreadsheet and follow this patterns:
Android | iOS | ||||||
---|---|---|---|---|---|---|---|
id | en | tc | cn | id | en | tc | cn |
lable_hello | Hello | 你好! | 你好! | lable_hello | Hello | 你好! | 你好! |
-
Export to .csv
-
Make sure python2.7 has installed on your OS. (python -V)
-
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
-
Paste the texts to your project file.