From 5b8d142abba9559f6b259940d5f35ccb1c098496 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 4 Aug 2022 21:55:02 +0200 Subject: [PATCH] fix: i18n scope --- src/components/tasks/partials/repeatAfter.vue | 2 +- src/views/namespaces/settings/edit.vue | 2 +- src/views/user/OpenIdAuth.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/tasks/partials/repeatAfter.vue b/src/components/tasks/partials/repeatAfter.vue index fc34c077..f77c127a 100644 --- a/src/components/tasks/partials/repeatAfter.vue +++ b/src/components/tasks/partials/repeatAfter.vue @@ -82,7 +82,7 @@ const props = defineProps({ }, }) -const {t} = useI18n() +const {t} = useI18n({useScope: 'global'}) const emit = defineEmits(['update:modelValue', 'change']) diff --git a/src/views/namespaces/settings/edit.vue b/src/views/namespaces/settings/edit.vue index 69a93957..590a64f9 100644 --- a/src/views/namespaces/settings/edit.vue +++ b/src/views/namespaces/settings/edit.vue @@ -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()) diff --git a/src/views/user/OpenIdAuth.vue b/src/views/user/OpenIdAuth.vue index 63bb3753..083739fb 100644 --- a/src/views/user/OpenIdAuth.vue +++ b/src/views/user/OpenIdAuth.vue @@ -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()