fix: vue-i18n global scope (#2366)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2366
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni 2022-09-15 09:54:01 +00:00 committed by konrad
parent 92f24e59a7
commit 602ab8379e
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ export function useList(listId: MaybeRef<ListModel['id']>) {
const listService = shallowReactive(new ListService()) const listService = shallowReactive(new ListService())
const {loading: isLoading} = toRefs(listService) const {loading: isLoading} = toRefs(listService)
const list : ListModel = reactive(new ListModel({})) const list : ListModel = reactive(new ListModel({}))
const {t} = useI18n() const {t} = useI18n({useScope: 'global'})
watch( watch(
() => unref(listId), () => unref(listId),

View file

@ -120,7 +120,7 @@ import { success } from '@/message'
const SEARCH_DEBOUNCE = 300 const SEARCH_DEBOUNCE = 300
const {t} = useI18n() const {t} = useI18n({useScope: 'global'})
const store = useStore() const store = useStore()
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()

View file

@ -95,7 +95,7 @@ const props = defineProps({
const router = useRouter() const router = useRouter()
const store = useStore() const store = useStore()
const {t} = useI18n() const {t} = useI18n({useScope: 'global'})
const {list, save: saveList, isLoading} = useList(props.listId) const {list, save: saveList, isLoading} = useList(props.listId)