fix: i18n scope

This commit is contained in:
Dominik Pschenitschni 2022-08-04 21:55:02 +02:00 committed by Gitea
parent 76cb94c488
commit 5b8d142abb
3 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ const props = defineProps({
},
})
const {t} = useI18n()
const {t} = useI18n({useScope: 'global'})
const emit = defineEmits(['update:modelValue', 'change'])

View file

@ -71,7 +71,7 @@ import NamespaceModel from '@/models/namespace'
import {useI18n} from 'vue-i18n'
import {useTitle} from '@/composables/useTitle'
const {t} = useI18n()
const {t} = useI18n({useScope: 'global'})
const store = useStore()
const namespaceService = ref(new NamespaceService())

View file

@ -25,7 +25,7 @@ import {getErrorText} from '@/message'
import Message from '@/components/misc/message.vue'
import {clearLastVisited, getLastVisited} from '@/helpers/saveLastVisited'
const {t} = useI18n()
const {t} = useI18n({useScope: 'global'})
const router = useRouter()
const route = useRoute()