update localization texts from google doc
Project description
Quick Start
#!/usr/bin/env python
from gslocalizator.string_file import SaveFormat
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=SaveFormat.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.1.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for gslocalizator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69da9cd0ac75c3fee5ea3614384f5dbb88161f39dac070e4e52b51302363ea44 |
|
MD5 | b87f1944ccd2c73a5df288eb13ee9031 |
|
BLAKE2b-256 | 53363a0749055bd878361a75cbf33b9552523d84bef2126b384cfaffe93f34a6 |