Skip to content

Commit

Permalink
ci: add new crowdin ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
espimarisa committed Aug 29, 2024
1 parent 5e9a38e commit 7e50e07
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/crowdin.yml
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 }}
6 changes: 6 additions & 0 deletions crowdin.yml
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

0 comments on commit 7e50e07

Please sign in to comment.