MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / t

Function t

demos/doc_demo.py:28–30  ·  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

26
27
28def t(eng, chinese):
29 """return English or Chinese text according to the user's browser language"""
30 return chinese if 'zh' in session_info.user_language else eng
31
32
33def playground(code):

Callers 1

handle_codeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected