Move localazy.json configuration file to its own folder and add a README.md

This commit is contained in:
Benoit Marty 2023-03-20 11:25:39 +01:00
parent 8064ceb68a
commit dcaaecde02
2 changed files with 23 additions and 0 deletions

23
tools/localazy/README.md Normal file
View file

@ -0,0 +1,23 @@
# Localazy
Localazy is used to host the source strings and their translations.
## Localazy project
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`!.
## CLI Installation
To install the Localazy client, follow the instructions from [here](https://localazy.com/docs/cli/installation).
## Download translations
In the root folder of the project, run:
```shell
localazy download --config ./tools/localazy/localazy.json
```
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.

View file

@ -0,0 +1,18 @@
{
"readKey": "a7876306080832595063-aa37154bb3772f6146890fca868d155b2228b492c56c91f67abdcdfb74d6142d",
"conversion": {
"actions": [
{
"type": "android",
"output": "libraries/ui-strings/src/main/res/values/localazy.xml",
"conditions": [ "equals: ${languageCode}, en" ]
},
{
"type": "android",
"output": "libraries/ui-strings/src/main/res/values-${langAndroidResNoScript}/localazy.xml",
"conditions": [ "!equals: ${languageCode}, en" ]
}
]
}
}