This commit is contained in:
yumoqing 2022-05-20 19:52:02 +08:00
parent b555938e84
commit 91affcd3e4

View File

@ -153,8 +153,9 @@ class MiniI18N:
threadid = threading.currentThread()
return self.clientLangs[threadid]['lang']
def getI18N(coding='utf8'):
path = ProgramPath()
def getI18N(path=None, coding='utf8'):
if path is None:
path = ProgramPath()
i18n = MiniI18N(path,coding)
return i18n