mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-01-20 02:51:09 +00:00
Format code (#142)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
376bd31c19
commit
b4c653142d
6
i18n.py
6
i18n.py
@@ -11,8 +11,10 @@ def load_language_list(language):
|
||||
|
||||
class I18nAuto:
|
||||
def __init__(self, language=None):
|
||||
if language in ['auto', None]:
|
||||
language = locale.getdefaultlocale()[0]#getlocale can't identify the system's language ((None, None))
|
||||
if language in ["auto", None]:
|
||||
language = locale.getdefaultlocale()[
|
||||
0
|
||||
] # getlocale can't identify the system's language ((None, None))
|
||||
if not os.path.exists(f"./i18n/{language}.json"):
|
||||
language = "en_US"
|
||||
self.language = language
|
||||
|
||||
Reference in New Issue
Block a user