summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarv <rotrobmin@gmail.com>2024-05-20 19:43:15 -0700
committerGitHub <noreply@github.com>2024-05-21 02:43:15 +0000
commit737e7eab8182fc4e083f7fd6df840327ab83287c (patch)
treef631608c12df2c1b5eb983324f8328aa63436210
parentee04cf6de3037a92524bad5c65349ca1e7b4174f (diff)
Add Cantonese (#976)
* Add Cantonese * Revert Mandarin Name Change
-rw-r--r--ext/js/language/language-descriptors.js5
-rw-r--r--types/ext/language-descriptors.d.ts1
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js
index e1446794..726842f1 100644
--- a/ext/js/language/language-descriptors.js
+++ b/ext/js/language/language-descriptors.js
@@ -248,6 +248,11 @@ const languageDescriptors = [
textPreprocessors: capitalizationPreprocessors
},
{
+ iso: 'yue',
+ name: 'Cantonese',
+ exampleText: '讀'
+ },
+ {
iso: 'zh',
name: 'Chinese',
exampleText: '读'
diff --git a/types/ext/language-descriptors.d.ts b/types/ext/language-descriptors.d.ts
index ae218317..aa961a6c 100644
--- a/types/ext/language-descriptors.d.ts
+++ b/types/ext/language-descriptors.d.ts
@@ -172,5 +172,6 @@ type AllTextProcessors = {
vi: {
pre: CapitalizationPreprocessors;
};
+ yue: Record<string, never>;
zh: Record<string, never>;
};