https://github.com/dhiwise/android-localization
This program will read from your android application string.xml file and generate translated strings.xml files in your preferred languages using google sheet.
https://github.com/dhiwise/android-localization
android kotlin localization localization-tool string
Last synced: 5 months ago
JSON representation
This program will read from your android application string.xml file and generate translated strings.xml files in your preferred languages using google sheet.
- Host: GitHub
- URL: https://github.com/dhiwise/android-localization
- Owner: DhiWise
- License: mit
- Created: 2021-12-09T10:04:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-21T05:56:50.000Z (over 3 years ago)
- Last Synced: 2024-04-24T06:09:51.702Z (about 1 year ago)
- Topics: android, kotlin, localization, localization-tool, string
- Language: Kotlin
- Homepage:
- Size: 6.48 MB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Localize your application content
- This program will read from your application string.xml file and generate translated strings.xml files in your
preferred languages using google sheet.
- Why using google sheet?
To avoid high transaction charges on API requests for translation. Or spending money on a Translator. 😉## Prerequisites
To run this quickstart, you need the following
prerequisites: https://developers.google.com/sheets/api/quickstart/java#prerequisites1. To create a project and enable an API,
- NOTE : For this quickstart, you are enabling the “Google Sheets API”2. Copy the credentials.json and add in project directory (StringLocalizationGenerator/credentials.json)
## Download
Download jar file of [Android-Localization](lib/Android-Localization.jar)
NOTE : if you directly run jar, please put credentials.json file in the folder where your jar file exists.## How to Run .jar file.
* cmd : java -jar .jar
After executing .jar file or directly run program
1. Please enter google sheet url
2. Please enter google sheet name
3. Please enter language code (i.e. German=de,French(Standard)=fr, French(Belgium)=fr-be)
4. Please enter 'String.xml' file path (i.e.D:\string.xml)- After performing 4th step : Please check google sheet( https://docs.google.com/spreadsheets/d/ 'ID OF GOOGLE
SHEET'/edit#gid=0 ) for all strings are converted or not, then perform 5th step5. For download translated language files type 'downloadFiles'

## NOTE1. Google sheet must be public with read and write permission.
2. Default language should be English.
3. First time,after performing the 4th step its redirecting browser and showing a popup of quickstart for permission so click with continue button.