From f3b3667c27a8a076c2074a87b95c0bcacb3cc71c Mon Sep 17 00:00:00 2001 From: Xikaro Date: Fri, 27 Feb 2026 11:11:30 +0500 Subject: [PATCH] Update crowdin.yml --- .github/workflows/crowdin.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 7a48b7d54..e58aa637e 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -37,10 +37,10 @@ on: download_language: description: 'Download language (leave empty for all)' required: false - default: '' + default: 'all' type: choice options: - - '' + - 'all' - 'de-DE' - 'es-ES' - 'fr-FR' @@ -65,7 +65,7 @@ permissions: jobs: sync: runs-on: ubuntu-latest - if: github.event.inputs.operation != 'status' + if: github.event.inputs.operation != 'status' || github.event.inputs.operation == '' steps: - name: Checkout repository uses: actions/checkout@v4 @@ -97,7 +97,7 @@ jobs: - name: Set localization branch name id: set_branch run: | - if [ -z "${{ github.event.inputs.download_language }}" ]; then + if [ -z "${{ github.event.inputs.download_language || 'all' }}" ]; then echo "branch_name=translations/all" >> $GITHUB_OUTPUT echo "pr_title_suffix=for ALL languages" >> $GITHUB_OUTPUT else @@ -114,13 +114,13 @@ jobs: import_eq_suggestions: true skip_untranslated_files: true download_translations: ${{ github.event.inputs.operation == 'download' || github.event.inputs.operation == 'both' || github.event_name == 'schedule' }} - download_language: ${{ github.event.inputs.download_language }} + download_language: ${{ github.event.inputs.download_language || 'all' }} config: crowdin.yml localization_branch_name: ${{ steps.set_branch.outputs.branch_name }} create_pull_request: ${{ (github.event.inputs.skip_pr != 'true' || github.event.inputs.skip_pr == '') && ((github.event.inputs.operation == 'download' || github.event.inputs.operation == 'both') || github.event_name == 'schedule') }} export_only_approved: ${{ github.event.inputs.export_approved_only || github.event_name == 'schedule' }} commit_message: "[translation] New translations" - dryrun_action: ${{ github.event.inputs.dry_run == 'true' }} + dryrun_action: ${{ github.event.inputs.dry_run == 'true' || false }} pull_request_base_branch_name: 'dev' pull_request_team_reviewers: 'modern-team' pull_request_title: "[🌐]: New Crowdin translations ${{ steps.set_branch.outputs.pr_title_suffix }}" @@ -155,7 +155,7 @@ jobs: # Status check job status: runs-on: ubuntu-latest - if: github.event.inputs.operation == 'status' + if: github.event.inputs.operation == 'status' || github.event.inputs.operation == '' steps: - name: Checkout repository @@ -193,7 +193,7 @@ jobs: echo "### 📊 Language Statistics" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - if [ -n "${{ github.event.inputs.download_language }}" ]; then + if [ -n "${{ github.event.inputs.download_language || 'all' }}" ]; then echo "🔍 **Selected Language**: ${{ github.event.inputs.download_language }}" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY # Get status for specific language