tuxbot-bot/cogs/utils/lang.py

9 lines
171 B
Python
Raw Normal View History

import gettext
import config
lang = gettext.translation('base', localedir='locales',
languages=[config.lang])
lang.install()
_ = lang.gettext