This is an automated email from the ASF dual-hosted git repository.
weilee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 0911676c287 Beautification of language translation check (#51557)
0911676c287 is described below
commit 0911676c287f11f37470b20d0618b1f820b3f4f6
Author: Jens Scheffler <[email protected]>
AuthorDate: Tue Jun 10 05:13:35 2025 +0200
Beautification of language translation check (#51557)
---
.github/boring-cyborg.yml | 3 +++
.../src/airflow/ui/src/i18n/check_translations_completeness.py | 8 +++++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/.github/boring-cyborg.yml b/.github/boring-cyborg.yml
index 93160bb8abd..a8969f0258e 100644
--- a/.github/boring-cyborg.yml
+++ b/.github/boring-cyborg.yml
@@ -356,6 +356,9 @@ labelPRBasedOnFilePath:
translation:de:
- airflow-core/src/airflow/ui/src/i18n/locales/de/*
+ translation:he:
+ - airflow-core/src/airflow/ui/src/i18n/locales/he/*
+
translation:ko:
- airflow-core/src/airflow/ui/src/i18n/locales/ko/*
diff --git
a/airflow-core/src/airflow/ui/src/i18n/check_translations_completeness.py
b/airflow-core/src/airflow/ui/src/i18n/check_translations_completeness.py
index 1b241178cbb..d001091f606 100755
--- a/airflow-core/src/airflow/ui/src/i18n/check_translations_completeness.py
+++ b/airflow-core/src/airflow/ui/src/i18n/check_translations_completeness.py
@@ -198,11 +198,11 @@ def print_language_summary(
) -> bool:
found_difference = False
missing_in_en: dict[str, dict[str, set[str]]] = {}
- for lf in locale_files:
+ for lf in sorted(locale_files):
locale = lf.locale
file_missing: dict[str, list[str]] = {}
file_extra: dict[str, list[str]] = {}
- for filename, diff in summary.items():
+ for filename, diff in sorted(summary.items()):
missing_keys = diff.missing_keys.get(locale, [])
extra_keys = diff.extra_keys.get(locale, [])
if missing_keys:
@@ -273,8 +273,10 @@ def print_translation_progress(console, locale_files,
missing_counts, summary):
all_files = set()
for lf in locale_files:
all_files.update(lf.files)
- for lf in locale_files:
+ for lf in sorted(locale_files):
lang = lf.locale
+ if lang == "en":
+ continue
table = tables[lang]
table.title = f"Translation Progress: {lang}"
table.add_column("File", style="bold cyan")