MCPcopy
hub / github.com/MaaEnd/MaaEnd / init_local

Function init_local

tools/setup_workspace.py:64–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63
64def init_local() -> None:
65 global _local_t
66 t_func, load_error_path = init_localization(LOCALS_DIR)
67 _local_t = t_func
68 if load_error_path:
69 print(Console.err(t("error_load_locale", path=load_error_path)))
70
71
72def t(key: str, **kwargs) -> str:

Callers 1

mainFunction · 0.70

Calls 3

init_localizationFunction · 0.90
errMethod · 0.80
tFunction · 0.70

Tested by

no test coverage detected