fix interchangable forms display

This commit is contained in:
Avris 2021-03-06 19:54:40 +01:00
parent e19e0ded6c
commit 9dbc8c3e84
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<span> <span>
<span v-for="part in example[(example.isHonorific ? pronoun.isPluralHonorific(counter) : pronoun.isPlural(counter)) ? 'pluralParts' : 'singularParts']"> <span v-for="part in example[(example.isHonorific ? pronoun.isPluralHonorific(counter) : pronoun.isPlural(counter)) ? 'pluralParts' : 'singularParts']">
<strong v-if="part.variable"><Spelling>{{pronoun.getMorpheme(part.str, counter)}}</Spelling></strong> <strong v-if="part.variable"><Spelling :text="pronoun.getMorpheme(part.str, counter)"/></strong>
<span v-else><Spelling>{{part.str}}</Spelling></span> <span v-else><Spelling>{{part.str}}</Spelling></span>
</span> </span>
<small v-if="link"> <small v-if="link">

View File

@ -50,7 +50,7 @@ export const buildPronoun = (pronouns, path) => {
for (let option of pronounStr[0].split('&')) { for (let option of pronounStr[0].split('&')) {
if (!base) { if (!base) {
base = pronounsWithAliases[option] base = pronounsWithAliases[option]
} else { } else if (pronounsWithAliases[option]) {
base = base.merge(pronounsWithAliases[option]) base = base.merge(pronounsWithAliases[option])
} }
} }