From 602ab8379e3fb11eb8b547d036921311f193fb12 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 15 Sep 2022 09:54:01 +0000 Subject: [PATCH] fix: vue-i18n global scope (#2366) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2366 Reviewed-by: konrad Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/composables/useList.ts | 2 +- src/views/list/settings/background.vue | 2 +- src/views/list/settings/edit.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/composables/useList.ts b/src/composables/useList.ts index e372da3c..0ee12539 100644 --- a/src/composables/useList.ts +++ b/src/composables/useList.ts @@ -11,7 +11,7 @@ export function useList(listId: MaybeRef) { const listService = shallowReactive(new ListService()) const {loading: isLoading} = toRefs(listService) const list : ListModel = reactive(new ListModel({})) - const {t} = useI18n() + const {t} = useI18n({useScope: 'global'}) watch( () => unref(listId), diff --git a/src/views/list/settings/background.vue b/src/views/list/settings/background.vue index 3a5fd95c..18d720cd 100644 --- a/src/views/list/settings/background.vue +++ b/src/views/list/settings/background.vue @@ -120,7 +120,7 @@ import { success } from '@/message' const SEARCH_DEBOUNCE = 300 -const {t} = useI18n() +const {t} = useI18n({useScope: 'global'}) const store = useStore() const route = useRoute() const router = useRouter() diff --git a/src/views/list/settings/edit.vue b/src/views/list/settings/edit.vue index c45b21a8..e7fc0947 100644 --- a/src/views/list/settings/edit.vue +++ b/src/views/list/settings/edit.vue @@ -95,7 +95,7 @@ const props = defineProps({ const router = useRouter() const store = useStore() -const {t} = useI18n() +const {t} = useI18n({useScope: 'global'}) const {list, save: saveList, isLoading} = useList(props.listId)