update localization texts from google doc
Project description
Quick Start
#!/usr/bin/env python
from gslocalizator import GoogleSheetLocalizator as GSLr
from cfg import *
def main():
with GSLr(GSL_CREDS_FILE, GSL_SPREADSHEET_ID) as gslr:
gslr.tran(
from_sheet_range='main!A1:E',
with_key_column='iOS(IM)Key',
from_value_column_to_file={
'zh-Hans': '.datas/ios/strings_main/zh-Hans.lproj/Localizable.strings',
'zh-Hant': '.datas/ios/strings_main/zh-Hant.lproj/Localizable.strings',
'en': '.datas/ios/strings_main/en.lproj/Localizable.strings',
'ja': '.datas/ios/strings_main/ja.lproj/Localizable.strings',
},
exclude_headers=['//']
).request(
).save(format="iOS")
if __name__ == '__main__':
main()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gslocalizator-0.0.2.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for gslocalizator-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba5622d9f74ae794001564b196946fdc3341b95c5914eabf302d1849929b073c |
|
MD5 | 6eb14fbac4e28bf2a0e66d9e00db95a2 |
|
BLAKE2b-256 | bf0e5c25e58f38edb9a4bf582ef7b57b1ec55c28b88ea94be5e4b1b62b3fa649 |