i18n-tools: Print locale that's being checked for legacy translations.

Adds a print statement to `tools/i18n/update-for-legacy-translations`
to help with debugging to know what locale was being checked if an
error is raised.
This commit is contained in:
Lauryn Menard 2024-06-04 14:57:19 +02:00 committed by Tim Abbott
parent 9a3263ec5d
commit 593a1f12b7
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ for locale in get_locales():
current = get_json_filename(locale)
legacy = get_legacy_filename(locale)
if os.path.exists(current) and os.path.exists(legacy):
print(f"Checking legacy translations for: {current}")
current_translations = get_translations(current)
legacy_translations = get_translations(legacy)
update_for_legacy_stream_translations(current_translations, legacy_translations, current)