i18n: setup localazy
This commit is contained in:
20
.github/workflows/translations-upload.yaml
vendored
Normal file
20
.github/workflows/translations-upload.yaml
vendored
Normal 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
15
localazy.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user