[Strings] Add script to generate config to download Strings from Localazy.
This commit is contained in:
parent
84b1c30572
commit
d3ad9b924a
5 changed files with 191 additions and 21 deletions
|
|
@ -6,7 +6,7 @@ Localazy is used to host the source strings and their translations.
|
|||
|
||||
To add new strings, or to translate existing strings, go the the Localazy project: [https://localazy.com/p/element](https://localazy.com/p/element).
|
||||
|
||||
Never edit manually the files `localazy.xml`!.
|
||||
Never edit manually the files `localazy.xml` or `translations.xml`!.
|
||||
|
||||
## CLI Installation
|
||||
|
||||
|
|
@ -17,7 +17,13 @@ To install the Localazy client, follow the instructions from [here](https://loca
|
|||
In the root folder of the project, run:
|
||||
|
||||
```shell
|
||||
localazy download --config ./tools/localazy/localazy.json
|
||||
./tools/localazy/downloadStrings.sh
|
||||
```
|
||||
|
||||
It will update all the `localazy.xml` resource files. In case of merge conflicts, just erase the files and download again using the Localazy client.
|
||||
It will update all the `localazy.xml` and `translations.xml` resource files. In case of merge conflicts, just erase the files and download again using the script.
|
||||
|
||||
## Add translations to a specific module
|
||||
|
||||
Edit the file [config.json](./config.json) to add a new module, or add a new item in `includeRegex` arrays, then run the script again to see the effect.
|
||||
|
||||
[generateLocalazyConfig.py](generateLocalazyConfig.py) is the Python script that convert `config.json` to a localazy configuration file. Generally should not edit this file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue