added back warning for missing key

This commit is contained in:
WhatDidYouExpect 2025-07-07 00:09:17 +02:00
parent 20148acff3
commit d5acf4e188

View file

@ -91,7 +91,7 @@ def get_translation(lang: str, key: str):
if key in lang_translations:
return lang_translations[key]
fallback = translations.get("en", {}).get(key, key)
#print(f"{RED}Missing key: '{key}' in language '{lang}', falling back to: '{fallback}'{RESET}")
print(f"{RED}Missing key: '{key}' in language '{lang}', falling back to: '{fallback}'{RESET}") # yeah probably print this
return fallback
def _(key: str) -> str: