https://github.com/fbiego/string-resource-translate
Generate translated string resources for Android Studio
https://github.com/fbiego/string-resource-translate
android-studio kotlin translation xml
Last synced: 5 months ago
JSON representation
Generate translated string resources for Android Studio
- Host: GitHub
- URL: https://github.com/fbiego/string-resource-translate
- Owner: fbiego
- Created: 2021-06-29T13:34:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-29T17:06:11.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T10:05:01.701Z (9 months ago)
- Topics: android-studio, kotlin, translation, xml
- Language: Kotlin
- Homepage:
- Size: 864 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# string-resource-translate
Generate translated string resources for Android Studio
## Google Sheets
Use `=GOOGLETRANSLATE(text, [source], [target])` formula to translate resources
[`Sample Translations`](https://docs.google.com/spreadsheets/d/1lhdiHR3SQ64gfVINh-0R4BrurcOl7Btu_H36IjDYhDI/edit?usp=sharing)
Export as csv
> File>Download>Comma-separated values
Compile translate.kt
> `kotlinc translate.kt -include-runtime -d translate.jar`
Generate output
> `java -jar translate.jar "export.txt"`
On Windows just run the batch file `run.bat`