From 1a234b16875cefa7f580a6035a549c6b0f36b0b1 Mon Sep 17 00:00:00 2001 From: kuuuube Date: Sun, 3 Nov 2024 12:15:50 -0500 Subject: [PATCH] Add to yue --- ext/js/language/language-descriptors.js | 3 +++ types/ext/language-descriptors.d.ts | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js index 52038c423..f125d4b7a 100644 --- a/ext/js/language/language-descriptors.js +++ b/ext/js/language/language-descriptors.js @@ -376,6 +376,9 @@ const languageDescriptors = [ iso639_3: 'yue', name: 'Cantonese', exampleText: '讀', + textPreprocessors: { + normalizeRadicalCharacters, + }, }, { iso: 'zh', diff --git a/types/ext/language-descriptors.d.ts b/types/ext/language-descriptors.d.ts index 09a10a833..199ec4b58 100644 --- a/types/ext/language-descriptors.d.ts +++ b/types/ext/language-descriptors.d.ts @@ -201,7 +201,11 @@ type AllTextProcessors = { normalizeDiacritics: TextProcessor<'old' | 'new' | 'off'>; }; }; - yue: Record; + yue: { + pre: { + normalizeRadicalCharacters: TextProcessor; + }; + }; zh: { pre: { normalizeRadicalCharacters: TextProcessor;