From 0792954e345925b3e3b2ebb733367e138375978e Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Tue, 27 Feb 2024 13:16:21 +0100 Subject: make deinflections language-specific (#720) * abstract deinflections * undo redundant changes * remove cast * MultiLanguageTransformer * comments * comments --- ext/js/language/language-descriptors.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/js/language/language-descriptors.js') diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js index d78a96e5..6675f78e 100644 --- a/ext/js/language/language-descriptors.js +++ b/ext/js/language/language-descriptors.js @@ -57,7 +57,8 @@ const languageDescriptors = [ iso: 'en', name: 'English', exampleText: 'read', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, + languageTransformsFile: '/js/language/en/english-transforms.json' }, { iso: 'es', @@ -122,7 +123,8 @@ const languageDescriptors = [ convertAlphabeticCharacters, convertHiraganaToKatakana, collapseEmphaticSequences - } + }, + languageTransformsFile: '/js/language/ja/japanese-transforms.json' }, { iso: 'km', -- cgit v1.2.3