Use composition for translation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { parseError } from '#shared/utils/error';
|
||||
|
||||
const { t } = useI18n();
|
||||
const emits = defineEmits<{
|
||||
update: [];
|
||||
}>();
|
||||
@@ -103,7 +104,7 @@ async function submit() {
|
||||
</template>
|
||||
</VaInput>
|
||||
|
||||
<VaAlert color="danger" v-if="error">{{ $t(error) }}</VaAlert>
|
||||
<VaAlert color="danger" v-if="error">{{ t(error) }}</VaAlert>
|
||||
</div>
|
||||
<template #footer>
|
||||
<VaButtonGroup
|
||||
|
||||
Reference in New Issue
Block a user