diaodiao's picture
Upload 50 files
3aed964 verified
raw
history blame contribute delete
224 Bytes
import os
import gettext
locale_dir = os.path.join(os.path.dirname(__file__))
lang = gettext.translation('messages', localedir=locale_dir, languages=['zh'], fallback=True)
lang.install()
_ = lang.gettext
i18n = _