You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
misc: update crowdin config
This commit is contained in:
15
.github/workflows/crowdin.yml
vendored
15
.github/workflows/crowdin.yml
vendored
@@ -1,17 +1,23 @@
|
|||||||
name: Crowdin Sync
|
name: Crowdin Action
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
- 'module/webui/locales/strings/*.xml'
|
- 'module/webui/locales/strings/*.xml'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync-translations:
|
synchronize-with-crowdin:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
- uses: crowdin/github-action@v1
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Crowdin Action
|
||||||
|
uses: crowdin/github-action@v1
|
||||||
with:
|
with:
|
||||||
upload_sources: true
|
upload_sources: true
|
||||||
upload_translations: true
|
upload_translations: true
|
||||||
@@ -25,7 +31,6 @@ jobs:
|
|||||||
|
|
||||||
config: 'crowdin.yml'
|
config: 'crowdin.yml'
|
||||||
crowdin_branch_name: main
|
crowdin_branch_name: main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||||
|
|||||||
20
crowdin.yml
20
crowdin.yml
@@ -1,24 +1,6 @@
|
|||||||
project_id_env: CROWDIN_PROJECT_ID
|
project_id_env: CROWDIN_PROJECT_ID
|
||||||
api_token_env: CROWDIN_API_TOKEN
|
api_token_env: CROWDIN_API_TOKEN
|
||||||
preserve_hierarchy: true
|
preserve_hierarchy: 1
|
||||||
|
|
||||||
files:
|
files:
|
||||||
- source: /module/webui/locales/strings/en.xml
|
- source: /module/webui/locales/strings/en.xml
|
||||||
translation: /module/webui/locales/strings/%locale%.xml
|
translation: /module/webui/locales/strings/%locale%.xml
|
||||||
languages_mapping:
|
|
||||||
locale:
|
|
||||||
ar: ar
|
|
||||||
az: az
|
|
||||||
es-ES: es
|
|
||||||
fr: fr
|
|
||||||
id: id
|
|
||||||
it: it
|
|
||||||
ja: ja
|
|
||||||
pl: pl
|
|
||||||
pt-BR: pt
|
|
||||||
ru: ru
|
|
||||||
tl: tl
|
|
||||||
tr: tr
|
|
||||||
uk: uk
|
|
||||||
zh-CN: zh-CN
|
|
||||||
zh-TW: zh-TW
|
|
||||||
|
|||||||
Reference in New Issue
Block a user