PagerMaid-Pyro/pagermaid/utils/_config_utils.py
xtaodada a941308d17
Some checks failed
Docker Dev Build / docker build and publish (push) Failing after 13s
Docker Build / docker build and publish (push) Failing after 11s
🔖 Update to v1.5.0
这是一项破坏性变更,目录结构进行了重组,无核心功能变化
2024-09-28 22:01:40 +08:00

12 lines
331 B
Python

from pagermaid.config import Config
def lang(text: str) -> str:
"""i18n"""
return Config.lang_dict.get(text, Config.lang_default_dict.get(text, text))
def alias_command(command: str, disallow_alias: bool = False) -> str:
"""alias"""
return command if disallow_alias else Config.alias_dict.get(command, command)