mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +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
|
translation = None
|
||||||
return translation
|
return translation
|
||||||
|
|
||||||
|
try:
|
||||||
LIST_LANGUAGES = LanguageTranslator().languages()
|
LIST_LANGUAGES = LanguageTranslator().languages()
|
||||||
|
except Exception:
|
||||||
|
LIST_LANGUAGES = []
|
||||||
|
|
||||||
def get_translation_languages():
|
def get_translation_languages():
|
||||||
return LIST_LANGUAGES
|
return LIST_LANGUAGES
|
||||||
|
|
Loading…
Reference in a new issue