MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / t

Function t

demos/input_usage.py:9–11  ·  view source on GitHub ↗

return English or Chinese text according to the user's browser language

(eng, chinese)

Source from the content-addressed store, hash-verified

7
8
9def t(eng, chinese):
10 """return English or Chinese text according to the user's browser language"""
11 return chinese if 'zh' in session_info.user_language else eng
12
13
14def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected