From fa1f9120895eb4a6d8aa22e7fd468a7f34c3fe4d Mon Sep 17 00:00:00 2001 From: Sabrina Hennrich Date: Tue, 20 May 2025 14:31:38 +0200 Subject: [PATCH] wvital improve --- components/ContactForm.vue | 3 ++- components/ImageComparisonSlider.vue | 2 +- components/template/PageFooter.vue | 12 +++++------- composables/useI18nPages.ts | 15 +++++++++++++++ nuxt.config.ts | 1 + 5 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 composables/useI18nPages.ts diff --git a/components/ContactForm.vue b/components/ContactForm.vue index 80afcba..bff2fc9 100644 --- a/components/ContactForm.vue +++ b/components/ContactForm.vue @@ -116,7 +116,7 @@ {{ $t('contactForm.privacyInfotextBeforeLink') }} {{ $t('contactForm.privacyInfotextLinkText') }} @@ -150,6 +150,7 @@ import { useMainStore } from '@/stores/main'; import { ref, reactive, computed } from 'vue'; import { storeToRefs } from 'pinia'; import { useI18n } from 'vue-i18n'; +const { getRoute } = useI18nPages() // i18n Setup const { t } = useI18n(); diff --git a/components/ImageComparisonSlider.vue b/components/ImageComparisonSlider.vue index 43e8d4e..45df99e 100644 --- a/components/ImageComparisonSlider.vue +++ b/components/ImageComparisonSlider.vue @@ -23,7 +23,7 @@ - +
diff --git a/components/template/PageFooter.vue b/components/template/PageFooter.vue index 0f3b8be..8574b59 100644 --- a/components/template/PageFooter.vue +++ b/components/template/PageFooter.vue @@ -82,7 +82,6 @@ > {{ $t(key) }} - {{ $t('faq') }}

@@ -132,21 +131,20 @@ height="26" />

-

- © 2018-{{ currentYear }} by {{ companyinfo?.web }} -

+ +

+ © 2018-{{ new Date().getFullYear() }} by {{ companyinfo?.web }} +

+