10 lines
240 B
Python
10 lines
240 B
Python
import gettext
|
|
from pathlib import Path
|
|
|
|
|
|
localedir: Path = Path(__file__).parent
|
|
|
|
translations: gettext.GNUTranslations | gettext.NullTranslations = gettext.translation("vnpy", localedir=localedir, fallback=True)
|
|
|
|
_ = translations.gettext
|