Skip to content

Commit

Permalink
Create crowdin-download.yml
Browse files Browse the repository at this point in the history
Initiate Crowdin Download Action
  • Loading branch information
marcelbrode committed Oct 25, 2023
1 parent 981be9f commit 5a592e2
Show file tree
Hide file tree
Showing 35 changed files with 14,219 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Crowdin Download Action

on:
workflow_dispatch:


jobs:
crowdin-download:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Synchronize with Crowdin
uses: crowdin/github-action@v1
with:
upload_sources: false
upload_translations: false
download_translations: true
localization_branch_name: i18n_crowdin_translations

create_pull_request: true
pull_request_title: 'New Crowdin translations'
pull_request_body: 'New Crowdin pull request with translations'
pull_request_base_branch_name: 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
4 changes: 2 additions & 2 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"preserve_hierarchy": true

files: [{
"source": "",
"translation": "/src/translations/%two_letters_code%/%original_file_name%",
"source": "/src/Resources/sources/*.json",
"translation": "/src/Resources/translations/%two_letters_code%/%original_file_name%",

# Files or directories for ignore
# e.g. ["/**/?.txt", "/**/[0-9].txt", "/**/*\?*.txt"]
Expand Down
Loading

0 comments on commit 5a592e2

Please sign in to comment.