mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-12 10:16:36 +00:00
Handle zt lingua case
This commit is contained in:
parent
f9712c800c
commit
5033f58e0d
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ class Language:
|
||||||
def load_detector(langcodes = ()):
|
def load_detector(langcodes = ()):
|
||||||
languages = []
|
languages = []
|
||||||
for lc in langcodes:
|
for lc in langcodes:
|
||||||
|
if lc == 'zt':
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
languages.append(linguars.Language.from_iso_code_639_1(lc))
|
languages.append(linguars.Language.from_iso_code_639_1(lc))
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in a new issue