Skip to content

Commit

Permalink
chore(Crowdin): Switch to Crowdin GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ushie committed Nov 11, 2023
1 parent 6229fc6 commit 053e5e0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync-crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Crowdin Action

on:
push:
branches: [ dev ]

jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: crowdin action
uses: crowdin/github-action@v1
with:
config: crowdin.yml
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: feat/translations
create_pull_request: true
pull_request_title: 'chore(i18n): Sync translations'
pull_request_body: 'Sync translations from [Crowdin/ReVanced](https://crowdin.com/project/revanced)'
pull_request_base_branch_name: 'dev'
commit_message: 'chore(i18n): Sync translations for %language%'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
2 changes: 2 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
api_token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
files:
- source: /assets/i18n/strings.i18n.json
translation: /assets/i18n/strings_%locale_with_underscore%.i18n.json

0 comments on commit 053e5e0

Please sign in to comment.