A python script that generates localization files for iOS and Android projects from a public GoogleSheet.
Project description
Localization Sync
This is a python script that downloads localization strings and CI color information from a public Google Sheet and generates resource files for iOS and Android projects.
Installation
pip install localization-sync
Prerequisites
Create a Google Sheet document with sheets like these:
Publish the sheeet to the web by pressing File -> Publish to the web. Select Whole Document and Website. This gives the script access to the public JSON API of Google Docs.
Find the ID of your document by copying it from your browsers address bar.
Usage
Create a data_sync.config.json
in your project and populate it with the contents of the example config. Replace the sheetId
with your own. You can modify the other settings to fit the needs of your project.
Then open a terminal at your project path and run l10n_sync
. Look for your newly created resource files.
You can also copy data_sync.py to your project and then run python3 data_sync.py
when your config file is ready.
Example
Have a look into the Output folder for some example files generated by using the provided configuration file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for localization_sync-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26fd6442abc3ad404e910cebd82d5c702a0cc4d079cb214f328a091f914bb331 |
|
MD5 | 6063c0cf9e84c6ffc4e3fc39ae31f31b |
|
BLAKE2b-256 | 37107f45a52f62b1f4bad56940648d6e02fdd53587f599df80a4163820ce8d54 |