https://github.com/emadehsan/ieighteen
Speed up your Localization / Internationalization efforts by automating translation with a single script
https://github.com/emadehsan/ieighteen
i18n localization python urdu
Last synced: 3 days ago
JSON representation
Speed up your Localization / Internationalization efforts by automating translation with a single script
- Host: GitHub
- URL: https://github.com/emadehsan/ieighteen
- Owner: emadehsan
- License: mit
- Created: 2017-02-18T06:54:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T07:54:58.000Z (about 8 years ago)
- Last Synced: 2025-04-06T17:06:06.715Z (28 days ago)
- Topics: i18n, localization, python, urdu
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 27
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ieighteen
Speed up your Localization/i18n efforts by automating translation. *You might need to proofread the translated text.* The `translate.py` script translates the file from source-locale folder to target-locale folder. E.g.`en/strings.txt` --- gets translated to ---> `ur/strings.txt`
The repo contains `ur/strings.txt`, the translated Urdu text as an example.
**Following Folders/Files must exist**
`en` or your source locale folder
`en/strings.txt` or your source locale file
`ur` or your target locale folder
The script creates (overwrites if already exist) the file in target locale folder
**To Run**
*Python 3 and libs used in `translate.py` must be installed*
Change following variables in `translate.py` according to your need
# Locale code of source and target languages
sourceLang = 'en'
targetLang = 'ur'
# Put file name here
filename = 'strings.txt'