✨ add german translation

This commit is contained in:
anbraten committed 2026-09-24 20:28:05 +02:00
1 parent 99a9f908f1
commit c78920ba6e
15 files changed
+3282 -4101

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
<script setup lang="ts">
import type { ExpenseView, PotView } from '~/types';
const { t } = useI18n();
const route = useRoute();
const slug = route.params.slug as string;
const { name } = useIdentity();
@@ -55,7 +56,7 @@ function cancelExpenseForm() {
}
async function removeExpense(id: number) {
if (!confirm('Delete this expense?')) return;
if (!confirm(t('expenses.deleteConfirm'))) return;
await $fetch(`/api/pots/${slug}/expenses/${id}`, { method: 'DELETE' });
await refresh();
}
@@ -88,7 +89,7 @@ async function removeExpense(id: number) {
class="w-full rounded-xl bg-orange-500 px-4 py-2 font-medium text-white shadow-sm transition-colors hover:bg-orange-600"
@click="newExpense"
>
+ Add expense
{{ t('expenses.addExpense') }}
</button>
</section>
</template>