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

Function t

demos/chat_room.py:14–16  ·  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

12
13
14def t(eng, chinese):
15 """return English or Chinese text according to the user's browser language"""
16 return chinese if 'zh' in session_info.user_language else eng
17
18
19async def refresh_msg(my_name):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected