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)