-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add possibility to download translations
- Loading branch information
1 parent
30e29c7
commit 0edec58
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Download translations from Crowdin | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
download-from-crowdin: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Crowdin Action | ||
uses: crowdin/github-action@v2 | ||
with: | ||
upload_sources: false | ||
upload_translations: false | ||
download_translations: true | ||
skip_untranslated_strings: true | ||
skip_untranslated_files: false | ||
commit_message: 'Import translation work from Crowdin' | ||
create_pull_request: true | ||
pull_request_title: 'New Crowdin translations' | ||
pull_request_labels: 'enhancement' | ||
config: 'crowdin.yml' | ||
dryrun_action: false | ||
project_id: ${{ vars.CROWDIN_PROJECT_ID }} | ||
token: ${{ secrets.CROWDIN_TOKEN }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |