From bb1290142f7b41ef71630b0928a4fdca4798c3ce Mon Sep 17 00:00:00 2001 From: Iurco Tiberiu-Iulian <39162045+tiberiuiurco@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:46:35 +0900 Subject: [ro] preprocess romanian diacritics (#1057) * remove romanian diacritics * linting fix * fixed redundancy --- ext/js/language/language-descriptors.js | 5 ++++- types/ext/language-descriptors.d.ts | 4 +++- 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; + }; }; ru: { pre: CapitalizationPreprocessors & { -- cgit v1.2.3