mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-04-20 23:30:34 +00:00
Update config_provider
This commit is contained in:
@@ -68,7 +68,9 @@ class i18n:
|
||||
|
||||
class MultiLanguage:
|
||||
|
||||
def __init__(self, language: str = None, files_dir="modules/i18n/files/", encoding="utf-8"):
|
||||
def __init__(self, language: str = None, files_dir="modules/i18n/files/", encoding=None):
|
||||
if encoding is None:
|
||||
encoding = config.enc
|
||||
if language is None:
|
||||
language = "en"
|
||||
self.__data = {}
|
||||
|
||||
Reference in New Issue
Block a user