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
feat: setup crowdin
This commit is contained in:
32
.github/workflows/crowdin.yml
vendored
Normal file
32
.github/workflows/crowdin.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Crowdin Sync
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- 'module/webui/locales/strings/*.xml'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync-translations:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: crowdin/github-action@v1
|
||||||
|
with:
|
||||||
|
upload_sources: true
|
||||||
|
upload_translations: true
|
||||||
|
download_translations: true
|
||||||
|
skip_untranslated_files: true
|
||||||
|
|
||||||
|
create_pull_request: true
|
||||||
|
localization_branch_name: crowdin_branch
|
||||||
|
pull_request_labels: 'enhancement, documentation'
|
||||||
|
pull_request_title: '[Translation] Update translation from Crowdin'
|
||||||
|
|
||||||
|
config: 'crowdin.yml'
|
||||||
|
crowdin_branch_name: main
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||||
|
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
|
||||||
24
crowdin.yml
Normal file
24
crowdin.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
project_id_env: CROWDIN_PROJECT_ID
|
||||||
|
api_token_env: CROWDIN_API_TOKEN
|
||||||
|
preserve_hierarchy: true
|
||||||
|
|
||||||
|
files:
|
||||||
|
- source: /module/webui/locales/strings/en.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