Skip to content

Commit

Permalink
TASK-76094: externalize crowdin's languages arg (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
bourasom authored Dec 19, 2024
1 parent 87ff3d5 commit 9799200
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/download-crowdin-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
default: "7.0.x"
required: false
type: string
CROWDIN_LANGUAGES_ARG:
description: Crowdin args for used languages
default: "-l ar -l aro -l az -l ca -l ceb -l co -l cs -l de -l el -l en -l es-ES -l eu -l fa -l fi -l fil -l fr -l hi -l hu -l id -l it -l ja -l ko -l lt -l ms -l nl -l no -l pcm -l pl -l pt-BR -l pt-PT -l ro -l ru -l sk -l sl -l sq -l sv-SE -l th -l tl -l tr -l uk -l ur-IN -l vi -l zh-CN -l zh-TW"
required: false
type: string
secrets:
CROWDIN_GITHUB_TOKEN:
required: true
Expand All @@ -28,4 +33,5 @@ jobs:
with:
PROJECT_VERSION: ${{ inputs.CROWDIN_DEVELOP_VERSION }}
PROJECT_BRANCH: develop
CROWDIN_LANGUAGES_ARG: ${{ inputs.CROWDIN_LANGUAGES_ARG }}
secrets: inherit
7 changes: 7 additions & 0 deletions .github/workflows/download-crowdin-exoplatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ on:
default: "true"
required: false
type: string
CROWDIN_LANGUAGES_ARG:
description: Crowdin args for used languages
default: "-l ar -l aro -l az -l ca -l ceb -l co -l cs -l de -l el -l en -l es-ES -l eu -l fa -l fi -l fil -l fr -l hi -l hu -l id -l it -l ja -l ko -l lt -l ms -l nl -l no -l pcm -l pl -l pt-BR -l pt-PT -l ro -l ru -l sk -l sl -l sq -l sv-SE -l th -l tl -l tr -l uk -l ur-IN -l vi -l zh-CN -l zh-TW"
required: false
type: string
secrets:
CROWDIN_GITHUB_TOKEN:
required: true
Expand All @@ -49,6 +54,7 @@ jobs:
with:
PROJECT_VERSION: ${{ inputs.CROWDIN_DEVELOP_VERSION }}
PROJECT_BRANCH: develop
CROWDIN_LANGUAGES_ARG: ${{ inputs.CROWDIN_LANGUAGES_ARG }}
secrets: inherit
# stable/x.x.x
crowdin-download-stable:
Expand All @@ -59,4 +65,5 @@ jobs:
PROJECT_VERSION: ${{ inputs.CROWDIN_MAINTENANCE_EXO_VERSION }}
PROJECT_BRANCH: stable/${{ inputs.CROWDIN_MAINTENANCE_EXO_VERSION }}
CROWDIN_BRANCH: ${{ inputs.CROWDIN_MAINTENANCE_BRANCH_VERSION }}
CROWDIN_LANGUAGES_ARG: ${{ inputs.CROWDIN_LANGUAGES_ARG }}
secrets: inherit
9 changes: 6 additions & 3 deletions .github/workflows/download-crowdin-generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
default: ""
required: false
type: string
CROWDIN_LANGUAGES_ARG:
description: Crowdin args for used languages
default: "-l ar -l aro -l az -l ca -l ceb -l co -l cs -l de -l el -l en -l es-ES -l eu -l fa -l fi -l fil -l fr -l hi -l hu -l id -l it -l ja -l ko -l lt -l ms -l nl -l no -l pcm -l pl -l pt-BR -l pt-PT -l ro -l ru -l sk -l sl -l sq -l sv-SE -l th -l tl -l tr -l uk -l ur-IN -l vi -l zh-CN -l zh-TW"
required: false
type: string
secrets:
CROWDIN_GITHUB_TOKEN:
required: true
Expand Down Expand Up @@ -51,9 +56,7 @@ jobs:
localization_branch_name: integration/${{inputs.PROJECT_VERSION}}-translation
create_pull_request: false
skip_ref_checkout: true
download_translations_args: '-l ar -l aro -l az -l ca -l ceb -l co -l cs -l de -l el -l en -l es-ES -l eu -l fa -l fi
-l fil -l fr -l hi -l hu -l id -l it -l ja -l ko -l lt -l ms -l nl -l no -l pcm -l pl -l pt-BR -l pt-PT -l ro -l ru
-l sk -l sl -l sq -l sv-SE -l th -l tl -l tr -l uk -l ur-IN -l vi -l zh-CN -l zh-TW'
download_translations_args: '${{inputs.CROWDIN_LANGUAGES_ARG}}'
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/download-crowdin-meedsio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ on:
default: "true"
required: false
type: string
CROWDIN_LANGUAGES_ARG:
description: Crowdin args for used languages
default: "-l ar -l aro -l az -l ca -l ceb -l co -l cs -l de -l el -l en -l es-ES -l eu -l fa -l fi -l fil -l fr -l hi -l hu -l id -l it -l ja -l ko -l lt -l ms -l nl -l no -l pcm -l pl -l pt-BR -l pt-PT -l ro -l ru -l sk -l sl -l sq -l sv-SE -l th -l tl -l tr -l uk -l ur-IN -l vi -l zh-CN -l zh-TW"
required: false
type: string
secrets:
CROWDIN_GITHUB_TOKEN:
required: true
Expand All @@ -53,6 +58,7 @@ jobs:
PROJECT_VERSION: ${{ inputs.CROWDIN_DEVELOP_VERSION }}-exo
PROJECT_BRANCH: develop-exo
CROWDIN_BRANCH: develop-exo
CROWDIN_LANGUAGES_ARG: ${{ inputs.CROWDIN_LANGUAGES_ARG }}
secrets: inherit
# develop-meed workflow
crowdin-download-develop-meed:
Expand All @@ -63,6 +69,7 @@ jobs:
PROJECT_VERSION: ${{ inputs.CROWDIN_DEVELOP_VERSION }}-meed
PROJECT_BRANCH: develop-meed
CROWDIN_BRANCH: develop-meed
CROWDIN_LANGUAGES_ARG: ${{ inputs.CROWDIN_LANGUAGES_ARG }}
secrets: inherit
# stable/x.x.x-exo workflow
crowdin-download-stable-exo:
Expand All @@ -73,4 +80,5 @@ jobs:
PROJECT_VERSION: ${{ inputs.CROWDIN_MAINTENANCE_EXO_VERSION }}
PROJECT_BRANCH: stable/${{ inputs.CROWDIN_MAINTENANCE_EXO_VERSION }}
CROWDIN_BRANCH: ${{ inputs.CROWDIN_MAINTENANCE_BRANCH_VERSION }}
CROWDIN_LANGUAGES_ARG: ${{ inputs.CROWDIN_LANGUAGES_ARG }}
secrets: inherit

0 comments on commit 9799200

Please sign in to comment.