Skip to content

Commit

Permalink
i18n: add translation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Jul 18, 2024
1 parent 0702639 commit a097d09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/Document/DocumentCarousel/DocumentCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,19 @@ const emit = defineEmits(['update:page'])
@update:modelValue="emit('update:page', $event)"
/>
<div class="document-carousel__content p-3">
<document-carousel-nav icon="caret-left" label="Previous document" @click="emit('update:page', page - 1)" />
<document-carousel-nav
icon="caret-left"
:label="$t('documentCarousel.previous')"
@click="emit('update:page', page - 1)"
/>
<div class="document-carousel__content__entries">
<slot />
</div>
<document-carousel-nav icon="caret-right" label="Next document" @click="emit('update:page', page + 1)" />
<document-carousel-nav
icon="caret-right"
:label="$t('documentCarousel.next')"
@click="emit('update:page', page + 1)"
/>
</div>
</div>
</template>
Expand Down
4 changes: 4 additions & 0 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,10 @@
"searchBreadcrumbToggler": {
"close": "Close"
},
"documentCarousel": {
"next": "Next document",
"previous": "Previous document"
},
"tiny-pagination": {
"page": "Page",
"aria": "Jump to page",
Expand Down

0 comments on commit a097d09

Please sign in to comment.