mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-28 19:59:54 +00:00
Add Crowdin config file and update crowdin-cli
Co-authored-by: Alexander Bakker <ab@alexbakker.me>
This commit is contained in:
parent
a5dc861336
commit
03c00d51ba
3 changed files with 18 additions and 20 deletions
|
@ -1,10 +0,0 @@
|
||||||
project_id: "372633"
|
|
||||||
api_token: "<api-token-here>"
|
|
||||||
base_path: "../app/src/main"
|
|
||||||
base_url: "https://api.crowdin.com"
|
|
||||||
preserve_hierarchy: true
|
|
||||||
|
|
||||||
files:
|
|
||||||
- source: "res/values/strings.xml"
|
|
||||||
dest: "strings.xml"
|
|
||||||
translation: "res/values-%android_code%/%original_file_name%"
|
|
14
.github/workflows/crowdin.yml
vendored
14
.github/workflows/crowdin.yml
vendored
|
@ -13,19 +13,13 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install crowdin-cli
|
- name: Install crowdin-cli
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/crowdin/crowdin-cli/releases/download/3.7.2/crowdin-cli.zip
|
wget https://github.com/crowdin/crowdin-cli/releases/download/4.6.1/crowdin-cli.zip
|
||||||
echo "ee9f838b819ccedc33c9b2537055e5ba7d7934561b24df1e1a6274cbd6e27f2d crowdin-cli.zip" | sha256sum -c
|
echo "7afd70de3a747ac631a5bad7866008163ae1d50c4606b5773f0b90a5481ffde2 crowdin-cli.zip" | sha256sum -c
|
||||||
unzip crowdin-cli.zip -d crowdin-cli
|
unzip crowdin-cli.zip -d crowdin-cli
|
||||||
- name: Upload to Crowdin
|
- name: Upload to Crowdin
|
||||||
env:
|
env:
|
||||||
CROWDIN_TOKEN: "${{ secrets.CROWDIN_TOKEN }}"
|
CROWDIN_PERSONAL_TOKEN: "${{ secrets.CROWDIN_TOKEN }}"
|
||||||
run: |
|
run: |
|
||||||
java -jar ./crowdin-cli/3.7.2/crowdin-cli.jar upload sources \
|
java -jar ./crowdin-cli/4.6.1/crowdin-cli.jar upload sources \
|
||||||
--no-progress \
|
--no-progress \
|
||||||
--token "$CROWDIN_TOKEN" \
|
|
||||||
--project-id 372633 \
|
|
||||||
--base-path app/src/main \
|
|
||||||
--source res/values/strings.xml \
|
|
||||||
--translation "res/values-%android_code%/%original_file_name%" \
|
|
||||||
--dest strings.xml \
|
|
||||||
--branch master
|
--branch master
|
||||||
|
|
14
crowdin.yml
Normal file
14
crowdin.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
project_id: "372633"
|
||||||
|
preserve_hierarchy: true
|
||||||
|
base_path: "app/src/main"
|
||||||
|
base_url: "https://api.crowdin.com"
|
||||||
|
api_token_env: "CROWDIN_PERSONAL_TOKEN"
|
||||||
|
files:
|
||||||
|
- type: "android"
|
||||||
|
source: "res/values/strings.xml"
|
||||||
|
dest: "strings.xml"
|
||||||
|
translation: "res/values-%android_code%/%original_file_name%"
|
||||||
|
- type: "android"
|
||||||
|
source: "res/values-v29/strings.xml"
|
||||||
|
dest: "strings-v29.xml"
|
||||||
|
translation: "res/values-%android_code%-v29/%original_file_name%"
|
Loading…
Add table
Add a link
Reference in a new issue