- Notifications
You must be signed in to change notification settings - Fork14
Speed up your Localization / Internationalization efforts by automating translation with a single script
License
emadehsan/ieighteen
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Speed up your Localization/i18n efforts by automating translation.You might need to proofread the translated text. Thetranslate.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 containsur/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 intranslate.py
must be installed
Change following variables intranslate.py
according to your need
# Locale code of source and target languagessourceLang = 'en'targetLang = 'ur'# Put file name herefilename = 'strings.txt'