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

Function t

demos/output_usage.py:7–9  ·  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

5
6
7def t(eng, chinese):
8 """return English or Chinese text according to the user's browser language"""
9 return chinese if 'zh' in session_info.user_language else eng
10
11
12def code_block(code, strip_indent=4):

Callers 2

code_blockFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected