mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-04 14:05:04 +08:00
Update i18n.py
This commit is contained in:
parent
50a121fc74
commit
19cc9062b0
5
i18n.py
5
i18n.py
@ -18,8 +18,11 @@ class I18nAuto:
|
||||
if not os.path.exists(f"./i18n/{language}.json"):
|
||||
language = "en_US"
|
||||
self.language = language
|
||||
print("Use Language:", language)
|
||||
#print("Use Language:", language)
|
||||
self.language_map = load_language_list(language)
|
||||
|
||||
def __call__(self, key):
|
||||
return self.language_map.get(key, key)
|
||||
|
||||
def print(self):
|
||||
print("Use Language:", self.language)
|
||||
|
Loading…
Reference in New Issue
Block a user