Skip to content

Commit

Permalink
feat: added plural table in definition (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
camarm-dev committed Nov 24, 2024
1 parent 3698a05 commit e81a9b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/src/views/DefinitionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import example from "@/assets/example.svg"
import quoteOpen from "@/assets/openQuote.svg"
import TabSection from "@/components/TabSection.vue"
import ConjugationTable from "@/components/ConjugationTable.vue"
import PluralsTable from "@/components/PluralsTable.vue";
const detailsModal = ref()
Expand Down Expand Up @@ -164,6 +165,15 @@ const closeModal = () => detailsModal.value.$el.dismiss(null, "cancel")
</ul>
</div>
</div>
<div class="definition" v-if="wordObject.plurals.length > 0">
<header>
<h4>{{ $t('definition.plurals') }}</h4>
<hr>
</header>
<div class="content">
<PluralsTable :plurals="wordObject.plurals"/>
</div>
</div>
</div>
<TabSection v-if="isTab('syn')" :title="$t('definition.synonyms')">
<ul>
Expand Down Expand Up @@ -272,6 +282,7 @@ export default defineComponent({
antonyms: [],
definitions: [],
phoneme: "",
plurals: [],
sources: [],
pronunciation: null,
conjugations: {},
Expand Down

0 comments on commit e81a9b5

Please sign in to comment.