From 7c3c2945f82af77672b0d2472dfab766379070f6 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Fri, 20 Aug 2021 15:38:16 +0200 Subject: [PATCH] feat: use vue-i18n 9 for vue3 --- package.json | 2 +- src/App.vue | 2 +- src/components/input/datepicker.vue | 3 +- src/components/input/multiselect.vue | 5 +- src/components/misc/api-config.vue | 4 +- src/components/misc/create-edit.vue | 4 +- src/components/misc/error.vue | 4 +- src/components/tasks/partials/attachments.vue | 4 +- src/helpers/getListTitle.js | 6 +- src/helpers/getNamespaceTitle.js | 10 +-- src/helpers/time/formatDate.js | 20 ++++-- src/i18n/{setup.js => index.js} | 8 +-- src/main.ts | 30 +++------ src/message/index.js | 8 +-- src/views/tasks/TaskDetailView.vue | 12 ++-- src/views/user/Login.vue | 2 +- src/views/user/OpenIdAuth.vue | 2 +- src/views/user/Settings.vue | 2 +- yarn.lock | 66 ++++++++++++++++--- 19 files changed, 123 insertions(+), 71 deletions(-) rename src/i18n/{setup.js => index.js} (93%) diff --git a/package.json b/package.json index b456ddba..1885d1dc 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "vue-drag-resize": "1.5.4", "vue-easymde": "1.4.0", "vue-flatpickr-component": "9.0.4", - "vue-i18n": "8.26.3", + "vue-i18n": "9.2.0-beta.6", "vue-router": "4.0.11", "vue-shortkey": "3.1.7", "vuedraggable": "2.24.3", diff --git a/src/App.vue b/src/App.vue index fdfd624b..90231eb0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,7 +34,7 @@ import TopNavigation from './components/home/topNavigation' import ContentAuth from './components/home/contentAuth' import ContentLinkShare from './components/home/contentLinkShare' import ContentNoAuth from './components/home/contentNoAuth' -import {setLanguage} from './i18n/setup' +import {setLanguage} from './i18n' import AccountDeleteService from '@/services/accountDelete' export default defineComponent({ diff --git a/src/components/input/datepicker.vue b/src/components/input/datepicker.vue index dbfb05e6..724764c7 100644 --- a/src/components/input/datepicker.vue +++ b/src/components/input/datepicker.vue @@ -112,6 +112,7 @@