mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 21:26:44 +02:00
dutch lang support
This commit is contained in:
+1
-1
@@ -300,7 +300,7 @@ def _get_answer_for_question(topic):
|
||||
print("query_text = ", query_text)
|
||||
supposed_lang = detector.languages[0].code
|
||||
print("supposed lang = ", supposed_lang)
|
||||
if len(topic_words) > 2 or supposed_lang in ['az', 'ru', 'uk', 'de', 'fr', 'es', 'it']:
|
||||
if len(topic_words) > 2 or supposed_lang in ['az', 'ru', 'uk', 'de', 'fr', 'es', 'it', 'nl']:
|
||||
lang = supposed_lang
|
||||
if supposed_lang.startswith('zh_') or supposed_lang == 'zh':
|
||||
lang = 'zh'
|
||||
|
||||
Reference in New Issue
Block a user