aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/language-descriptors.js
diff options
context:
space:
mode:
authorCashew <52880648+cashewnuttynuts@users.noreply.github.com>2024-06-01 08:58:41 +0900
committerGitHub <noreply@github.com>2024-05-31 23:58:41 +0000
commitb6341f312d8332ccff0d928d936e9290da0e9584 (patch)
treeafbe836ced6f9fdee9423bdf3b4384769b025283 /ext/js/language/language-descriptors.js
parent76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (diff)
Add isTextLookupWorthy function for Chinese (#743)
* add is Chinese check move * fix lint * fix lint * fixes --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com> Co-authored-by: Stefan Vukovic <stefanvukovic44@gmail.com>
Diffstat (limited to 'ext/js/language/language-descriptors.js')
-rw-r--r--ext/js/language/language-descriptors.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js
index 07ca31ac..defd73a8 100644
--- a/ext/js/language/language-descriptors.js
+++ b/ext/js/language/language-descriptors.js
@@ -36,6 +36,7 @@ import {removeRussianDiacritics, yoToE} from './ru/russian-text-preprocessors.js
import {oldIrishTransforms} from './sga/old-irish-transforms.js';
import {albanianTransforms} from './sq/albanian-transforms.js';
import {capitalizeFirstLetter, decapitalize, removeAlphabeticDiacritics} from './text-processors.js';
+import {isStringPartiallyChinese} from './zh/chinese.js';
const capitalizationPreprocessors = {
decapitalize,
@@ -264,6 +265,7 @@ const languageDescriptors = [
iso: 'zh',
name: 'Chinese',
exampleText: '读',
+ isTextLookupWorthy: isStringPartiallyChinese,
},
];