Skip to content

Commit

Permalink
Add crowdin support
Browse files Browse the repository at this point in the history
Based on Lawnchair's `crowdin.yml` file
  • Loading branch information
SuperDragonXD authored Aug 5, 2024
1 parent 82f70ec commit b2e4354
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Crowdin Synchronization

on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:

synchronize-with-crowdin:
name: Synchronize with Crowdin
if: github.repository_owner == 'LawnchairLauncher'
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Sync Translations
uses: crowdin/github-action@v2
with:
upload_translations: false
upload_sources: true
download_translations: true
localization_branch_name: i18n
create_pull_request: true
base_url: 'https://lawnchair.crowdin.com'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 comments on commit b2e4354

Please sign in to comment.