mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
fix: [language] libretranslate unreachable
This commit is contained in:
parent
25c467f11a
commit
cea96863ba
1 changed files with 4 additions and 2 deletions
|
@ -313,8 +313,10 @@ class LanguageTranslator:
|
|||
translation = None
|
||||
return translation
|
||||
|
||||
|
||||
LIST_LANGUAGES = LanguageTranslator().languages()
|
||||
try:
|
||||
LIST_LANGUAGES = LanguageTranslator().languages()
|
||||
except Exception:
|
||||
LIST_LANGUAGES = []
|
||||
|
||||
def get_translation_languages():
|
||||
return LIST_LANGUAGES
|
||||
|
|
Loading…
Reference in a new issue