Skip to content

Commit

Permalink
preprocess romanian diacritics
Browse files Browse the repository at this point in the history
* remove romanian diacritics

* linting fix

* fixed redundancy

<rikaitan.link>YmIxMjkwMTQyZjdiNDFlZjcxNjMwYjA5MjhhNGZkY2E0Nzk4YzNjZQo=</rikaitan.link>
  • Loading branch information
tiberiuiurco authored and louisv20 committed Jun 12, 2024
1 parent 11f793a commit 9e631ea
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 @@ -199,7 +199,10 @@ const languageDescriptors = [
iso: 'ro',
name: 'Romanian',
exampleText: 'citit',
textPreprocessors: capitalizationPreprocessors,
textPreprocessors: {
...capitalizationPreprocessors,
removeAlphabeticDiacritics,
},
},
{
iso: 'ru',
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 @@ -143,7 +143,9 @@ type AllTextProcessors = {
pre: CapitalizationPreprocessors;
};
ro: {
pre: CapitalizationPreprocessors;
pre: CapitalizationPreprocessors & {
removeAlphabeticDiacritics: TextProcessor<boolean>;
};
};
ru: {
pre: CapitalizationPreprocessors & {
Expand Down

0 comments on commit 9e631ea

Please sign in to comment.