MCPcopy
hub / github.com/zai-org/Open-AutoGLM / get_messages

Function get_messages

phone_agent/config/i18n.py:54–66  ·  view source on GitHub ↗

Get UI messages dictionary by language. Args: lang: Language code, 'cn' for Chinese, 'en' for English. Returns: Dictionary of UI messages.

(lang: str = "cn")

Source from the content-addressed store, hash-verified

52
53
54def get_messages(lang: str = "cn") -> dict:
55 """
56 Get UI messages dictionary by language.
57
58 Args:
59 lang: Language code, 'cn' for Chinese, 'en' for English.
60
61 Returns:
62 Dictionary of UI messages.
63 """
64 if lang == "en":
65 return MESSAGES_EN
66 return MESSAGES_ZH
67
68
69def get_message(key: str, lang: str = "cn") -> str:

Callers 10

_execute_stepMethod · 0.90
_execute_stepMethod · 0.90
example_basic_taskFunction · 0.90
example_with_callbacksFunction · 0.90
example_step_by_stepFunction · 0.90
example_multiple_tasksFunction · 0.90
example_remote_deviceFunction · 0.90
basic_usage.pyFile · 0.90
mainFunction · 0.90
get_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected