i18n: setup localazy

This commit is contained in:
Quentin Gliech
2023-10-03 16:47:57 +02:00
parent 16481bc81a
commit 1d11b71443
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
name: Upload translation files to Localazy
on:
push:
branches:
- main
jobs:
upload:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout the code
uses: actions/checkout@v4.1.0
- name: Upload
uses: localazy/upload@v1.0.0
with:
write_key: ${{ secrets.LOCALAZY_WRITE_KEY }}

15
localazy.json Normal file
View File

@@ -0,0 +1,15 @@
{
"$schema": "https://raw.githubusercontent.com/localazy/cli-schema/master/localazy.json",
"readKey": "a7633943728394577700-c0f9f1df124fbdbe76b2c7dfcbfe574476d56509e0da6180e2a321dbbe056c40",
"upload": {
"type": "json",
"files": "translations/en.json",
"features": [
"arb_metadata",
"plural_object"
]
},
"download": {
"files": "translations/${lang}.json"
}
}