https://github.com/alanfischer/andtoios
AndToIos is a simple python script to share your android localized strings with your ios storyboards/localized strings.
https://github.com/alanfischer/andtoios
android ios locale storyboard translation
Last synced: 3 months ago
JSON representation
AndToIos is a simple python script to share your android localized strings with your ios storyboards/localized strings.
- Host: GitHub
- URL: https://github.com/alanfischer/andtoios
- Owner: alanfischer
- License: mit
- Created: 2018-05-23T18:39:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T19:01:53.000Z (about 7 years ago)
- Last Synced: 2025-01-09T05:37:39.809Z (5 months ago)
- Topics: android, ios, locale, storyboard, translation
- Language: Python
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# andtoios
andtoios.py is a simple python script to share your android localized strings with your ios storyboards/localized strings.## Recomended workflow
Translate your android strings.xml file, resulting in a directory structure like:
- res/values/strings.xml
- res/values-de/strings.xmlUse xcode's storyboard internationalization, resulting in a directory structure like:
- Base.lproj/
- de.lproj/Then, add another unused 'reference' language to xcode. For this example it is called 'reference'.
- reference.lproj/Then edit the reference.lproj/ strings files, and change the translated text to be the android string key name, such as:
- "B3f-ze-f2m.text" = "android_string_hello"Finally, run andtoios.py as follows:
andtoios.py android/src/main/res/values-de.strings.xml ios/src/reference.lproj ios/src/de.lprojAnd it will copy the correct android string entry to the de.lproj string text, including converting %s to %@.