cremalink.resources.lang module
This module provides a function to load the language configuration from the embedded lang.json resource file.
- cremalink.resources.lang.load_lang_config() dict[str, Any][source]
Loads the language configuration from the lang.json resource file.
This function uses importlib.resources to access the JSON file.
The @lru_cache decorator memoizes the result, so the file is only read and parsed once, improving performance on subsequent calls.
- Returns:
A dictionary containing the language configuration data.