From 7955fc85ac089d856b44bdea78eccd26ffbd690c Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Mon, 3 Jun 2024 19:25:51 +0200 Subject: display inflection rule descriptions (#1000) * load descriptions in deinflector * description functions in deinflectors * show descriptions in title * use toaster * use names without internal * css lint * reformat transform descriptors * fix merge errors * done? * rename method --- ext/js/language/es/spanish-transforms.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ext/js/language/es') diff --git a/ext/js/language/es/spanish-transforms.js b/ext/js/language/es/spanish-transforms.js index f2b503a6..54022fd5 100644 --- a/ext/js/language/es/spanish-transforms.js +++ b/ext/js/language/es/spanish-transforms.js @@ -73,8 +73,8 @@ export const spanishTransforms = { isDictionaryForm: true, }, }, - transforms: [ - { + transforms: { + 'plural': { name: 'plural', description: 'Plural form of a noun', rules: [ @@ -85,14 +85,14 @@ export const spanishTransforms = { ...[...'aeiou'].map((v) => suffixInflection(`${v}nes`, `${addAccent(v)}n`, ['np'], ['ns'])), // 'canciones' -> canciĆ³n ], }, - { + 'feminine adjective': { name: 'feminine adjective', description: 'feminine form of an adjective', rules: [ suffixInflection('a', 'o', ['adj'], ['adj']), ], }, - { + 'present indicative': { name: 'present indicative', description: 'Present indicative form of a verb', rules: [ @@ -167,5 +167,5 @@ export const spanishTransforms = { wholeWordInflection('han', 'haber', ['v'], ['v']), ], }, - ], + }, }; -- cgit v1.2.3