return English or Chinese text according to the user's browser language
(eng, chinese)
| 5 | |
| 6 | |
| 7 | def 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 | |
| 12 | def code_block(code, strip_indent=4): |
no outgoing calls
no test coverage detected