Skip to content

Commit

Permalink
add diacritics removal preprocessors (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Casheeew authored Jul 13, 2024
1 parent 825991b commit 3823c82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ext/js/language/language-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ const languageDescriptors = [
iso639_3: 'tgl',
name: 'Tagalog',
exampleText: 'basahin',
textPreprocessors: capitalizationPreprocessors,
textPreprocessors: {
...capitalizationPreprocessors,
removeAlphabeticDiacritics,
},
},
{
iso: 'tr',
Expand Down
4 changes: 3 additions & 1 deletion types/ext/language-descriptors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ type AllTextProcessors = {
};
th: Record<string, never>;
tl: {
pre: CapitalizationPreprocessors;
pre: CapitalizationPreprocessors & {
removeAlphabeticDiacritics: TextProcessor<boolean>;
};
};
tr: {
pre: CapitalizationPreprocessors;
Expand Down

0 comments on commit 3823c82

Please sign in to comment.