summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIurco Tiberiu-Iulian <39162045+tiberiuiurco@users.noreply.github.com>2024-06-12 22:46:35 +0900
committerGitHub <noreply@github.com>2024-06-12 13:46:35 +0000
commitbb1290142f7b41ef71630b0928a4fdca4798c3ce (patch)
tree6bdbafe7e42c23ce99f157a79e3fc56a5346fbb7
parent0165aff45dddb9623535ef1a6b8d261edee1d716 (diff)
[ro] preprocess romanian diacritics (#1057)
* remove romanian diacritics * linting fix * fixed redundancy
-rw-r--r--ext/js/language/language-descriptors.js5
-rw-r--r--types/ext/language-descriptors.d.ts4
2 files changed, 7 insertions, 2 deletions
diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js
index 98d3f6c8..8c27590f 100644
--- a/ext/js/language/language-descriptors.js
+++ b/ext/js/language/language-descriptors.js
@@ -199,7 +199,10 @@ const languageDescriptors = [
iso: 'ro',
name: 'Romanian',
exampleText: 'citit',
- textPreprocessors: capitalizationPreprocessors,
+ textPreprocessors: {
+ ...capitalizationPreprocessors,
+ removeAlphabeticDiacritics,
+ },
},
{
iso: 'ru',
diff --git a/types/ext/language-descriptors.d.ts b/types/ext/language-descriptors.d.ts
index 270d753b..856e55b3 100644
--- a/types/ext/language-descriptors.d.ts
+++ b/types/ext/language-descriptors.d.ts
@@ -143,7 +143,9 @@ type AllTextProcessors = {
pre: CapitalizationPreprocessors;
};
ro: {
- pre: CapitalizationPreprocessors;
+ pre: CapitalizationPreprocessors & {
+ removeAlphabeticDiacritics: TextProcessor<boolean>;
+ };
};
ru: {
pre: CapitalizationPreprocessors & {