feat: add i18n to history import and export

This commit is contained in:
Bnyro
2025-01-09 14:22:27 +01:00
parent 9dbe6c557b
commit 9352e96d9c
4 changed files with 26 additions and 12 deletions

View File

@@ -1,10 +1,10 @@
<template>
<ModalComponent>
<div class="min-w-max flex flex-col">
<h2 class="mb-4 text-center text-xl font-bold">Export History</h2>
<h2 v-t="'actions.export_history'" class="mb-4 text-center text-xl font-bold" />
<form>
<div>
<label class="mr-2" for="export-format">Export as:</label>
<label v-t="'actions.file_format'" class="mr-2" for="export-format" />
<select id="export-format" v-model="exportAs" class="select">
<option
v-for="option in exportOptions"
@@ -27,7 +27,7 @@
</label>
</div>
</form>
<button class="btn mt-4" @click="handleExport">Export</button>
<button class="btn mt-4" @click="handleExport" v-text="$t('actions.export_history')" />
</div>
</ModalComponent>
</template>