Skip to content

Commit 990bebd

Browse files
committed
fix translations, import usei18n
1 parent d13087f commit 990bebd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adminforth/spa/src/components/ResourceForm.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ import { computed, onMounted, ref, watch } from 'vue';
6464
import { useRouter, useRoute } from 'vue-router';
6565
import { useCoreStore } from "@/stores/core";
6666
import GroupsTable from '@/components/GroupsTable.vue';
67+
import { useI18n } from 'vue-i18n';
6768
68-
const coreStore = useCoreStore();
6969
70+
const coreStore = useCoreStore();
71+
const { t } = useI18n();
7072
const router = useRouter();
7173
const route = useRoute();
7274
const props = defineProps({
@@ -78,7 +80,7 @@ const props = defineProps({
7880
7981
const unmasked = ref({});
8082
81-
const mode = computed(() => route.name === 'resource-create' ? $t('create') : $t('edit'));
83+
const mode = computed(() => route.name === 'resource-create' ? t('create') : t('edit'));
8284
8385
const emit = defineEmits(['update:record', 'update:isValid']);
8486

0 commit comments

Comments
 (0)