mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-09 05:12:12 +02:00
add mark fixes
Signed-off-by: Jenkins, Kenneth Alexander <kjenkins60@gatech.edu>
This commit is contained in:
parent
ae58fa7f98
commit
37beb1eba5
7 changed files with 9 additions and 1161 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue