Skip to content

Commit 053e5e0

Browse files
committed
chore(Crowdin): Switch to Crowdin GitHub Actions
1 parent 6229fc6 commit 053e5e0

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/sync-crowdin.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Crowdin Action
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
7+
jobs:
8+
synchronize-with-crowdin:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: crowdin action
16+
uses: crowdin/github-action@v1
17+
with:
18+
config: crowdin.yml
19+
upload_sources: true
20+
upload_translations: false
21+
download_translations: true
22+
localization_branch_name: feat/translations
23+
create_pull_request: true
24+
pull_request_title: 'chore(i18n): Sync translations'
25+
pull_request_body: 'Sync translations from [Crowdin/ReVanced](https://crowdin.com/project/revanced)'
26+
pull_request_base_branch_name: 'dev'
27+
commit_message: 'chore(i18n): Sync translations for %language%'
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
30+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
31+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

crowdin.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
2+
api_token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
13
files:
24
- source: /assets/i18n/strings.i18n.json
35
translation: /assets/i18n/strings_%locale_with_underscore%.i18n.json

0 commit comments

Comments
 (0)