MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / set_language

Function set_language

gui/i18n.py:18–22  ·  view source on GitHub ↗

Set current language code.

(lang_code: str)

Source from the content-addressed store, hash-verified

16
17
18def set_language(lang_code: str) -> None:
19 """Set current language code."""
20 global _current_language
21 if lang_code in ("en", "zh"):
22 _current_language = lang_code
23
24
25def get_text(key: str, **kwargs) -> str:

Callers 3

__init__Method · 0.85
_change_languageMethod · 0.85

Calls

no outgoing calls

Tested by 1