Get UI messages dictionary by language. Args: lang: Language code, 'cn' for Chinese, 'en' for English. Returns: Dictionary of UI messages.
(lang: str = "cn")
| 52 | |
| 53 | |
| 54 | def 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 | |
| 69 | def get_message(key: str, lang: str = "cn") -> str: |
no outgoing calls
no test coverage detected