2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

feat: add Crowdin action

This commit is contained in:
2025-08-22 17:00:20 +08:00
parent 117d395cf1
commit 9927bb1b97
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ on:
- main
permissions:
contents: write
pull-requests: write
jobs:
l10n:
runs-on: ubuntu-latest
@@ -39,14 +40,16 @@ jobs:
name: Commit changes
with:
commit_message: "chore(l10n): update pot files"
- name: Crowdin Sync
- name: Sync with Crowdin
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
download_translations: true
export_only_approved: true
create_pull_request: true
config: crowdin.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

View File

@@ -1,3 +1,5 @@
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
commit_message: 'Update translations (%language%) %original_file_name%'
pull_request_title: 'l10n: update translations'
files: