Skip to content

[v3-1-test] Convert check_translation_completeness.py into breeze c… - #58654

Merged
potiuk merged 1 commit into
apache:v3-1-testfrom
potiuk:backport-60034e1-v3-1-test
Nov 25, 2025
Merged

potiuk merged 1 commit into
apache:v3-1-testfrom
potiuk:backport-60034e1-v3-1-test

Conversation

@potiuk

@potiuk potiuk commented Nov 24, 2025

Copy link
Copy Markdown
Member

…ommand (#58637)

The script had no good support for auto-complete and the like and since everyone now use breeze for some tasks, we also should have it as a regular breeze command.

Also the sorting order implemented by eslint jsonc natural sorting was quite a bit different from what you'd expect:

  • it sorts character-by-character case-insensitive
  • it uses original sorting as tie-breker in case of characters case-insensitve order
  • handles numbers natuarlly (2<10)
  • treats _ as end of word and sort it before everything else
  • similarly with end of word - shorter words are before longer if they have the same prefix

This PR updates the command and also fixes sorting order and add unit tests to test vital parts of the translation script. (cherry picked from commit 60034e1)


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

…ommand (apache#58637)

The script had no good support for auto-complete and the like and
since everyone now use breeze for some tasks, we also should
have it as a regular breeze command.

Also the sorting order implemented by eslint jsonc natural
sorting was quite a bit different from what you'd expect:

* it sorts character-by-character case-insensitive
* it uses original sorting as tie-breker in case of characters
  case-insensitve order
* handles numbers natuarlly (2<10)
* treats _ as end of word and sort it before everything else
* similarly with end of word - shorter words are before longer
  if they have the same prefix

This PR updates the command and also fixes sorting order and
add unit tests to test vital parts of the translation script.
(cherry picked from commit 60034e1)

Co-authored-by: Jarek Potiuk <[email protected]>
@potiuk
potiuk force-pushed the backport-60034e1-v3-1-test branch from 9cfc582 to 7adb1cf Compare November 24, 2025 23:49
@potiuk
potiuk merged commit 3cda11b into apache:v3-1-test Nov 25, 2025
@potiuk
potiuk deleted the backport-60034e1-v3-1-test branch November 25, 2025 00:09
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Dec 1, 2025
@ephraimbuddy ephraimbuddy added this to the Airflow 3.1.4 milestone Dec 2, 2025
ephraimbuddy pushed a commit that referenced this pull request Dec 3, 2025
…ommand (#58637) (#58654)

The script had no good support for auto-complete and the like and
since everyone now use breeze for some tasks, we also should
have it as a regular breeze command.

Also the sorting order implemented by eslint jsonc natural
sorting was quite a bit different from what you'd expect:

* it sorts character-by-character case-insensitive
* it uses original sorting as tie-breker in case of characters
  case-insensitve order
* handles numbers natuarlly (2<10)
* treats _ as end of word and sort it before everything else
* similarly with end of word - shorter words are before longer
  if they have the same prefix

This PR updates the command and also fixes sorting order and
add unit tests to test vital parts of the translation script.
(cherry picked from commit 60034e1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:translations area:UI Related to UI/UX. For Frontend Developers. changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants