Fix check_and_install_transliteration

This commit is contained in:
Piero Toffanin 2022-06-21 14:22:12 -04:00
parent 3c1be4e731
commit 647379aea5

View file

@ -65,7 +65,7 @@ def check_and_install_models(force=False, load_only_lang_codes=None):
def check_and_install_transliteration(force=False): def check_and_install_transliteration(force=False):
# 'en' is not a supported transliteration language # 'en' is not a supported transliteration language
transliteration_languages = [ transliteration_languages = [
l.code for l in app.language.languages if l.code != "en" l.code for l in app.language.load_languages() if l.code != "en"
] ]
# check installed # check installed