()
| 62 | |
| 63 | |
| 64 | def 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 | |
| 72 | def t(key: str, **kwargs) -> str: |
no test coverage detected