From 5ef939a230f7e2adcc62fbffd56aae7b74aec565 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 23 May 2022 05:23:59 +0000 Subject: [PATCH] feature/fix-vue-i18n-9.2.31 (#1994) Co-authored-by: renovate Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1994 Reviewed-by: konrad Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- package.json | 2 +- src/App.vue | 2 +- src/components/date/datepickerWithRange.vue | 2 +- src/components/misc/api-config.vue | 2 +- src/components/misc/create-edit.vue | 11 +-- src/components/misc/no-auth-wrapper.vue | 2 +- src/components/misc/subscription.vue | 2 +- src/components/sharing/linkSharing.vue | 2 +- src/components/sharing/userTeam.vue | 2 +- src/components/tasks/add-task.vue | 2 +- src/components/tasks/edit-task.vue | 2 +- .../tasks/partials/checklist-summary.vue | 2 +- src/components/tasks/partials/comments.vue | 2 +- src/components/tasks/partials/defer-task.vue | 2 +- .../tasks/partials/editAssignees.vue | 2 +- src/components/tasks/partials/editLabels.vue | 2 +- src/components/tasks/partials/listSearch.vue | 2 +- src/composables/useCopyToClipboard.ts | 2 +- src/i18n/index.ts | 8 ++- src/views/filters/FilterDelete.vue | 2 +- src/views/filters/FilterEdit.vue | 2 +- src/views/list/ListGantt.vue | 2 +- src/views/list/NewList.vue | 2 +- src/views/list/settings/archive.vue | 2 +- src/views/list/settings/delete.vue | 2 +- src/views/list/settings/duplicate.vue | 2 +- src/views/list/settings/share.vue | 2 +- src/views/migrator/Migrate.vue | 2 +- src/views/namespaces/settings/share.vue | 2 +- src/views/sharing/LinkSharingAuth.vue | 2 +- src/views/tasks/ShowTasks.vue | 2 +- src/views/teams/EditTeam.vue | 2 +- src/views/teams/ListTeams.vue | 2 +- src/views/user/PasswordReset.vue | 2 +- src/views/user/Settings.vue | 2 +- src/views/user/settings/Avatar.vue | 2 +- src/views/user/settings/Caldav.vue | 2 +- src/views/user/settings/DataExport.vue | 2 +- src/views/user/settings/Deletion.vue | 2 +- src/views/user/settings/EmailUpdate.vue | 2 +- src/views/user/settings/General.vue | 4 +- src/views/user/settings/PasswordUpdate.vue | 2 +- src/views/user/settings/TOTP.vue | 2 +- yarn.lock | 70 +++++++++---------- 44 files changed, 85 insertions(+), 88 deletions(-) diff --git a/package.json b/package.json index 150a26bb..f95c040b 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "vue-advanced-cropper": "2.8.1", "vue-drag-resize": "2.0.3", "vue-flatpickr-component": "9.0.6", - "vue-i18n": "9.2.0-beta.30", + "vue-i18n": "9.2.0-beta.35", "vue-router": "4.0.15", "vuex": "4.0.2", "workbox-precaching": "6.5.3", diff --git a/src/App.vue b/src/App.vue index ec62fd9a..79d68683 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,7 +48,7 @@ const keyboardShortcutsActive = computed(() => store.state.keyboardShortcutsActi const authUser = computed(() => store.getters['auth/authUser']) const authLinkShare = computed(() => store.getters['auth/authLinkShare']) -const {t} = useI18n() +const {t} = useI18n({useScope: 'global'}) // setup account deletion verification const accountDeletionConfirm = useRouteQuery('accountDeletionConfirm') as Ref diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index 61c21ef5..d4acf662 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -83,7 +83,7 @@ import BaseButton from '@/components/base/BaseButton.vue' import DatemathHelp from '@/components/date/datemathHelp.vue' const store = useStore() -const {t} = useI18n() +const {t} = useI18n({useScope: 'global'}) const emit = defineEmits(['dateChanged']) diff --git a/src/components/misc/api-config.vue b/src/components/misc/api-config.vue index 16a62a57..d07aa68a 100644 --- a/src/components/misc/api-config.vue +++ b/src/components/misc/api-config.vue @@ -70,7 +70,7 @@ watch(() => props.configureOpen, (value) => { }, {immediate: true}) -const {t} = useI18n() +const {t} = useI18n({useScope: 'global'}) const errorMsg = ref('') const successMsg = ref('') diff --git a/src/components/misc/create-edit.vue b/src/components/misc/create-edit.vue index 12a292b4..5d9ee284 100644 --- a/src/components/misc/create-edit.vue +++ b/src/components/misc/create-edit.vue @@ -28,22 +28,21 @@ {{ $t('misc.cancel') }} - {{ primaryLabel }} + {{ primaryLabel || $t('misc.create') }} +