Skip to content

fix(ui): avoid false unused plural keys in translation completeness checker#65259

Merged
potiuk merged 1 commit into
apache:mainfrom
windro-xdd:fix-65229-plural-forms-checker
Apr 14, 2026
Merged

fix(ui): avoid false unused plural keys in translation completeness checker#65259
potiuk merged 1 commit into
apache:mainfrom
windro-xdd:fix-65229-plural-forms-checker

Conversation

@windro-xdd

Copy link
Copy Markdown
Contributor

Summary

  • Fix check-translation-completeness so plural keys are expanded not only when EN contains {{count}}, but also when EN already has multiple plural forms for the same base (for example _one + _other).
  • This avoids false "unused" reports for locale-specific plural forms in languages like Polish.
  • Added focused tests for both the helper behavior and compare flow regression.

Why

Issue #65229 reports that language-specific plural forms can be marked as unused even when plural routing is active.

Tests

  • uv run ruff format dev/breeze/src/airflow_breeze/commands/ui_commands.py dev/breeze/tests/test_ui_commands.py
  • uv run ruff check --fix dev/breeze/src/airflow_breeze/commands/ui_commands.py dev/breeze/tests/test_ui_commands.py
  • uv run --project dev/breeze pytest dev/breeze/tests/test_ui_commands.py -xvs

Closes #65229

@potiuk

potiuk commented Apr 14, 2026

Copy link
Copy Markdown
Member

Pending CI passes.

@potiuk potiuk force-pushed the fix-65229-plural-forms-checker branch from 136a24f to a655664 Compare April 14, 2026 22:04
@potiuk potiuk merged commit e7a3124 into apache:main Apr 14, 2026
141 checks passed
@boring-cyborg

boring-cyborg Bot commented Apr 14, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

github-actions Bot pushed a commit that referenced this pull request Apr 14, 2026
…mpleteness check (#65259)

(cherry picked from commit e7a3124)

Co-authored-by: Windro.xd <[email protected]>
Co-authored-by: test <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-2-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-2-test PR Link

github-actions Bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Apr 14, 2026
…mpleteness check (apache#65259)

(cherry picked from commit e7a3124)

Co-authored-by: Windro.xd <[email protected]>
Co-authored-by: test <[email protected]>
potiuk pushed a commit that referenced this pull request Apr 14, 2026
…mpleteness check (#65259) (#65270)

(cherry picked from commit e7a3124)

Co-authored-by: Windro.xd <[email protected]>
Co-authored-by: test <[email protected]>
@potiuk potiuk added this to the Airflow 3.2.1 milestone Apr 14, 2026
vatsrahul1001 pushed a commit that referenced this pull request Apr 15, 2026
…mpleteness check (#65259) (#65270)

(cherry picked from commit e7a3124)

Co-authored-by: Windro.xd <[email protected]>
Co-authored-by: test <[email protected]>
vatsrahul1001 pushed a commit that referenced this pull request Apr 15, 2026
…mpleteness check (#65259) (#65270)

(cherry picked from commit e7a3124)

Co-authored-by: Windro.xd <[email protected]>
Co-authored-by: test <[email protected]>
vatsrahul1001 pushed a commit that referenced this pull request Apr 15, 2026
…mpleteness check (#65259) (#65270)

(cherry picked from commit e7a3124)

Co-authored-by: Windro.xd <[email protected]>
Co-authored-by: test <[email protected]>
vatsrahul1001 pushed a commit that referenced this pull request Apr 15, 2026
…mpleteness check (#65259) (#65270)

(cherry picked from commit e7a3124)

Co-authored-by: Windro.xd <[email protected]>
Co-authored-by: test <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check-translation-completeness incorrectly reports language-specific plural forms as unused / can be removed

2 participants