add mark fixes

Signed-off-by: Jenkins, Kenneth Alexander <kjenkins60@gatech.edu>
This commit is contained in:
Jenkins, Kenneth Alexander 2026-04-13 19:35:37 -04:00
parent ae58fa7f98
commit 37beb1eba5
No known key found for this signature in database
7 changed files with 9 additions and 1161 deletions

View file

@ -98,11 +98,14 @@ def normalize_language(value: Optional[str]) -> str:
return "en"
# Returns a mutable object - caller must not mutate!
@lru_cache(maxsize=32)
def get_language_pack(language: str) -> Dict[str, str]:
"""Load the language pack for `language` from package resources."""
lang = normalize_language(language)
if lang not in SUPPORTED_LANGUAGES:
lang = "en"
try:
with importlib_resources.open_text(