Skip to content

Commit

Permalink
Add to yue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Nov 3, 2024
1 parent b947d26 commit 1a234b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ext/js/language/language-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ const languageDescriptors = [
iso639_3: 'yue',
name: 'Cantonese',
exampleText: '讀',
textPreprocessors: {
normalizeRadicalCharacters,
},
},
{
iso: 'zh',
Expand Down
6 changes: 5 additions & 1 deletion types/ext/language-descriptors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ type AllTextProcessors = {
normalizeDiacritics: TextProcessor<'old' | 'new' | 'off'>;
};
};
yue: Record<string, never>;
yue: {
pre: {
normalizeRadicalCharacters: TextProcessor<boolean>;
};
};
zh: {
pre: {
normalizeRadicalCharacters: TextProcessor<boolean>;
Expand Down

0 comments on commit 1a234b1

Please sign in to comment.