Update i18n.py

This commit is contained in:
RVC-Boss 2023-05-05 14:14:31 +08:00 committed by GitHub
parent 6726af00cf
commit 15519de5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,4 +22,4 @@ class I18nAuto:
self.language_map = load_language_list(language)
def __call__(self, key):
return self.language_map[key]
return self.language_map.get(key,key)