up to date with volta

This commit is contained in:
WhatDidYouExpect 2025-07-07 12:24:14 +02:00
parent c23281980c
commit 0a044f349b
2 changed files with 4 additions and 1 deletions

View file

@ -40,5 +40,5 @@ latest_version = "0.0.0"
local_version = "2.0.1"
os.environ['gooberlocal_version'] = local_version
REACT = os.getenv("REACT")
beta = False # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks
beta = True # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks

View file

@ -130,6 +130,9 @@ def get_translation(lang: str, key: str):
lang_translations = translations.get(lang, {})
if key in lang_translations:
return lang_translations[key]
else:
if key not in translations.get("en", {}):
return f"[VOLTA] {RED}Missing key: '{key}' in en.json!{RESET}"
fallback = translations.get("en", {}).get(key, key)
print(f"[VOLTA] {RED}Missing key: '{key}' in language '{lang}', falling back to: '{fallback}'{RESET}") # yeah probably print this
return fallback