aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/language-descriptors.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-23 15:23:10 -0700
committerGitHub <noreply@github.com>2024-05-23 22:23:10 +0000
commitd6aa6737821f5db61e932714322f2401f86b5200 (patch)
treea8d95dab4c7f6ebe1140bb894a919bc666761ab6 /ext/js/language/language-descriptors.js
parentbbb19669c27a4216ae11937650da173165e72978 (diff)
Basic Spanish Transforms (#908)
* Spanish transforms * Add more spanish transforms * Address comments * Fix types * Undo prefix change
Diffstat (limited to 'ext/js/language/language-descriptors.js')
-rw-r--r--ext/js/language/language-descriptors.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js
index baf53f81..3a78aff5 100644
--- a/ext/js/language/language-descriptors.js
+++ b/ext/js/language/language-descriptors.js
@@ -19,6 +19,7 @@ import {removeArabicScriptDiacritics} from './ar/arabic-text-preprocessors.js';
import {eszettPreprocessor} from './de/german-text-preprocessors.js';
import {germanTransforms} from './de/german-transforms.js';
import {englishTransforms} from './en/english-transforms.js';
+import {spanishTransforms} from './es/spanish-transforms.js';
import {
alphabeticToHiragana,
alphanumericWidthVariants,
@@ -78,7 +79,8 @@ const languageDescriptors = [
iso: 'es',
name: 'Spanish',
exampleText: 'acabar de',
- textPreprocessors: capitalizationPreprocessors
+ textPreprocessors: capitalizationPreprocessors,
+ languageTransforms: spanishTransforms
},
{
iso: 'fa',