-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e9a38e
commit 7e50e07
Showing
2 changed files
with
47 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,41 @@ | ||
name: Crowdin Action | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
synchronize-with-crowdin: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Crowdin | ||
uses: crowdin/[email protected] | ||
with: | ||
push_translations: true | ||
upload_sources: true | ||
upload_translations: false | ||
download_translations: true | ||
skip_untranslated_strings: true | ||
skip_untranslated_files: true | ||
localization_branch_name: i18n | ||
create_pull_request: true | ||
commit_message: "i18n: add new translations" | ||
pull_request_assignees: espimarisa | ||
pull_request_reviewers: espimarisa | ||
pull_request_title: "[i18n] New translations" | ||
pull_request_labels: "i18n" | ||
pull_request_body: "New Crowdin pull request with translations" | ||
pull_request_base_branch_name: "main" | ||
env: | ||
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository). | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
||
# A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
|
||
# Visit https://crowdin.com/settings#api-key to create this token | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
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,6 @@ | ||
files: | ||
- source: /locales/en-US/*.json | ||
translation: /locales/%locale% | ||
|
||
commit_message: "i18n: new %language% translations" | ||
append_commit_message: true |