1
0
mirror of synced 2024-11-15 03:07:40 +01:00

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)