Skip to content

Commit

Permalink
fix(actions): missing lang code fix (#2525)
Browse files Browse the repository at this point in the history
* Reapply "fix(docs): fix translation language codes (#2524)"

This reverts commit 00c2091.

* fix(actions): missing lang code fix

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
!crowdin upload
  • Loading branch information
Lulalaby authored Aug 12, 2024
1 parent 8c1a3ca commit 10262a2
Show file tree
Hide file tree
Showing 86 changed files with 13 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs-localization-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: "Build locales"
run:
sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l
hi -l ko -l pt -l es -l zh
hi -l ko -l pt_BR -l es -l zh_CN
working-directory: ./docs
- name: "Crowdin"
uses: crowdin/github-action@v2
Expand All @@ -41,7 +41,9 @@ jobs:
localization_branch_name: l10n_master
create_pull_request: true
pull_request_title: "docs: Update localizations from Crowdin"
pull_request_body: "Crowdin download was triggered due to completely translated file or project. Starting sync. CC @Lulalaby"
pull_request_body:
"Crowdin download was triggered due to completely translated file or
project. Starting sync. CC @Lulalaby"
pull_request_base_branch_name: "master"
pull_request_reviewers: "Lulalaby"
config: "crowdin.yml"
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/docs-localization-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
permissions: write-all
name: "Localisize Docs"
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '!crowdin upload') || github.event_name == 'workflow_dispatch'
if:
contains(github.event.head_commit.message, '!crowdin upload') || github.event_name
== 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- name: "Install Python"
Expand All @@ -32,7 +34,8 @@ jobs:
working-directory: ./docs
- name: "Build locales"
run:
sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l hi -l ko -l pt -l es -l zh
sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l
hi -l ko -l pt_BR -l es -l zh_CN
working-directory: ./docs
- name: "Crowdin"
uses: crowdin/github-action@v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/version-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ permissions:
jobs:
auto-merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'crowdin-bot' || github.actor == 'Crowdin Bot' }}
if:
${{ github.actor == 'dependabot[bot]' || github.actor == 'crowdin-bot' ||
github.actor == 'Crowdin Bot' }}
steps:
- run: gh pr review --approve "$PR_URL"
env:
Expand Down
2 changes: 1 addition & 1 deletion crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ commit_message: "docs: Update translations"
export_languages: ["de", "ja", "fr", "it", "hi", "ko", "pt-BR", "es-ES", "zh-CN"]

bundles:
- 4
- 1

files:
[
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 10262a2

Please sign in to comment.