oml fix!
This commit is contained in:
989onan
2024-07-24 17:53:02 -04:00
parent bf108eb94a
commit ce1cc79664
3 changed files with 5 additions and 93 deletions
+2 -1
View File
@@ -63,9 +63,10 @@ def load_translations() -> bool:
print(f"Loaded default translations: {dictionary}") # Debug print
else:
print("Default translation file 'en_US.json' not found.")
return dictionary != old_dictionary
def t(phrase: str, *args, **kwargs) -> str:
def t(phrase: str, default: str = None) -> str:
output: str = dictionary.get(phrase)
if output is None:
if verbose: