-
Notifications
You must be signed in to change notification settings - Fork 86
32 lines (26 loc) · 1.06 KB
/
crowdin_sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Crowdin Translation Sync
on: workflow_dispatch
jobs:
crowdin_sync:
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Crowdin Sync
uses: crowdin/github-action@v2
with:
upload_sources: false
upload_translations: false
download_translations: true
localization_branch_name: 'feat/lang/service'
create_pull_request: true
pull_request_title: 'feat: updated translations from crowdin'
pull_request_labels: 'priority: low, status: ready for review, type: translation'
pull_request_base_branch_name: 'main'
source: 'src/main/generated/assets/galacticraft/lang/en_us.json'
translation: 'src/main/resources/assets/galacticraft/lang/%locale_with_underscore%.json'
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
base_url: ${{ secrets.CROWDIN_BASE_URL }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}