File tree Expand file tree Collapse file tree 2 files changed +19
-85
lines changed
Expand file tree Collapse file tree 2 files changed +19
-85
lines changed Original file line number Diff line number Diff line change @@ -7,24 +7,26 @@ permissions:
77 contents : write
88
99jobs :
10- update :
10+ synchronize-with-crowdin :
1111 runs-on : ubuntu-latest
12+
1213 steps :
1314 - uses : actions/checkout@v6
1415
15- - run : |
16- pip install crowdin-api-client
17-
18- - run : |
19- python scripts/sync_translations.py ${{secrets.CROWDIN_API}}
20-
21- - name : Configure git
22- run : |
23- git config user.name "github-actions[bot]"
24- git config user.email "github-actions[bot]@users.noreply.github.com"
25-
26- - name : Sync translations
27- run : |
28- git add . && \
29- git commit -m "Sync translations from Crowdin" && \
30- git push || echo "No changes to commit"
16+ - name : crowdin action
17+ uses : crowdin/github-action@v2.16.0
18+ with :
19+ upload_sources : true
20+ upload_translations : true
21+ download_translations : true
22+ localization_branch_name : l10n_crowdin_translations
23+ create_pull_request : true
24+ pull_request_title : ' New Crowdin Translations'
25+ pull_request_body : ' New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
26+ pull_request_base_branch_name : ' develop'
27+ source : src/lang/en.json
28+ translation : src/lang/%two_letters_code%.json
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
32+ CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_API }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments