Skip to content

Commit

Permalink
Update cjk.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huu4ontocord authored Mar 6, 2022
1 parent 6f50413 commit 6f89b39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cjk.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ def cjk_detect(texts):
if re.search("[\u0E01-\u0E5B]", texts):
return "th"
return None

def is_lang_cjk(lang):
return lang in {'zh', 'zh-classical', 'zh-min-nan', 'zh-yue', 'ko', 'ja', 'th'}

0 comments on commit 6f89b39

Please sign in to comment.