Skip to content

Commit 10262a2

Browse files
fix(actions): missing lang code fix (#2525)
* 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
1 parent 8c1a3ca commit 10262a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+13
-6
lines changed

.github/workflows/docs-localization-download.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: "Build locales"
3030
run:
3131
sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l
32-
hi -l ko -l pt -l es -l zh
32+
hi -l ko -l pt_BR -l es -l zh_CN
3333
working-directory: ./docs
3434
- name: "Crowdin"
3535
uses: crowdin/github-action@v2
@@ -41,7 +41,9 @@ jobs:
4141
localization_branch_name: l10n_master
4242
create_pull_request: true
4343
pull_request_title: "docs: Update localizations from Crowdin"
44-
pull_request_body: "Crowdin download was triggered due to completely translated file or project. Starting sync. CC @Lulalaby"
44+
pull_request_body:
45+
"Crowdin download was triggered due to completely translated file or
46+
project. Starting sync. CC @Lulalaby"
4547
pull_request_base_branch_name: "master"
4648
pull_request_reviewers: "Lulalaby"
4749
config: "crowdin.yml"

.github/workflows/docs-localization-upload.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
permissions: write-all
1212
name: "Localisize Docs"
1313
runs-on: ubuntu-latest
14-
if: contains(github.event.head_commit.message, '!crowdin upload') || github.event_name == 'workflow_dispatch'
14+
if:
15+
contains(github.event.head_commit.message, '!crowdin upload') || github.event_name
16+
== 'workflow_dispatch'
1517
steps:
1618
- uses: actions/checkout@v4
1719
- name: "Install Python"
@@ -32,7 +34,8 @@ jobs:
3234
working-directory: ./docs
3335
- name: "Build locales"
3436
run:
35-
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
37+
sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l
38+
hi -l ko -l pt_BR -l es -l zh_CN
3639
working-directory: ./docs
3740
- name: "Crowdin"
3841
uses: crowdin/github-action@v2

.github/workflows/version-updates.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ permissions:
88
jobs:
99
auto-merge:
1010
runs-on: ubuntu-latest
11-
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'crowdin-bot' || github.actor == 'Crowdin Bot' }}
11+
if:
12+
${{ github.actor == 'dependabot[bot]' || github.actor == 'crowdin-bot' ||
13+
github.actor == 'Crowdin Bot' }}
1214
steps:
1315
- run: gh pr review --approve "$PR_URL"
1416
env:

crowdin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ commit_message: "docs: Update translations"
88
export_languages: ["de", "ja", "fr", "it", "hi", "ko", "pt-BR", "es-ES", "zh-CN"]
99

1010
bundles:
11-
- 4
11+
- 1
1212

1313
files:
1414
[
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 commit comments

Comments
 (0)