andreahlert commented on code in PR #62983:
URL: https://github.com/apache/airflow/pull/62983#discussion_r2895065046


##########
dev/breeze/src/airflow_breeze/commands/ui_commands.py:
##########
@@ -512,15 +550,15 @@ def sort_dict_keys(obj):
         console.print(f"[green]Added missing translations to 
{lang_path}[/green]")
 
 
-def remove_extra_translations(language: str, summary: dict[str, 
LocaleSummary]):
+def remove_unused_translations(language: str, summary: dict[str, 
LocaleSummary]):
     """
-    Remove extra translations for the selected language.
+    Remove unused translations for the selected language.
 
-    Removes keys that are present in the language file but missing in the 
English file.
+    Removes keys that are present in the language file but are not required.
     """
     console = get_console()
     for filename, diff in summary.items():
-        extra_keys = set(diff.extra_keys.get(language, []))
+        extra_keys = set(diff.unused_keys.get(language, []))
         if not extra_keys:

Review Comment:
   Renamed to unused_keys for consistency
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to