Use composition for translation

This commit is contained in:
2025-08-14 19:56:49 +02:00
parent 900414727f
commit 24f933fbaa
12 changed files with 111 additions and 99 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { parseError } from '#shared/utils/error';
const { t } = useI18n();
const emits = defineEmits<{
update: [];
}>();
@@ -62,7 +63,7 @@ async function submit() {
placeholder="The best team!"
/>
<p>An invite code will be generated automatically.</p>
<VaAlert color="danger" v-if="error">{{ $t(error) }}</VaAlert>
<VaAlert color="danger" v-if="error">{{ t(error) }}</VaAlert>
</div>
<template #footer>
<VaButtonGroup :loading="pending" :disabled="pending">