From 2b7769a7eb37d4784f6903879dfdbadfd324ff0f Mon Sep 17 00:00:00 2001 From: Jakob Schwehn Date: Fri, 10 Jan 2025 13:19:42 +0100 Subject: [PATCH 1/2] update current year --- src/i18n/de/translation.json | 2 +- src/i18n/en/translation.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n/de/translation.json b/src/i18n/de/translation.json index 024f052fed..15c8fae75c 100644 --- a/src/i18n/de/translation.json +++ b/src/i18n/de/translation.json @@ -320,7 +320,7 @@ "english": "Englisch" }, "Homepage": { - "developers": "© 2021-2023, mit ❤️ von inovex", + "developers": "© 2021-2025, mit ❤️ von inovex", "teaserTitle": "Bringe dich & dein Team ans Ziel mit der Retrospektive.", "teaserText": "Starte in kürzester Zeit deine Retrospektive – es ist keine Registrierung notwendig und komplett kostenlos.", "startButton": "Jetzt loslegen", diff --git a/src/i18n/en/translation.json b/src/i18n/en/translation.json index d28d36916a..dc20f6ddf6 100644 --- a/src/i18n/en/translation.json +++ b/src/i18n/en/translation.json @@ -320,7 +320,7 @@ "english": "English" }, "Homepage": { - "developers": "© 2021-2023, provided by inovex with ❤️", + "developers": "© 2021-2025, provided by inovex with ❤️", "teaserTitle": "Reach new heights with your team and start your first retrospective.", "teaserText": "Start your first collaborative session in an instant - no registration required and completely free.", "startButton": "Start now", From be94c0d90e761ae7e814a23a9da142d1d1f1827f Mon Sep 17 00:00:00 2001 From: Jakob Schwehn Date: Fri, 10 Jan 2025 13:24:18 +0100 Subject: [PATCH 2/2] dynamic year --- src/i18n/de/translation.json | 2 +- src/i18n/en/translation.json | 2 +- src/routes/Homepage/Homepage.tsx | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/i18n/de/translation.json b/src/i18n/de/translation.json index 15c8fae75c..4d27b1bad0 100644 --- a/src/i18n/de/translation.json +++ b/src/i18n/de/translation.json @@ -320,7 +320,7 @@ "english": "Englisch" }, "Homepage": { - "developers": "© 2021-2025, mit ❤️ von inovex", + "developers": "© 2021-{{currentYear}}, mit ❤️ von inovex", "teaserTitle": "Bringe dich & dein Team ans Ziel mit der Retrospektive.", "teaserText": "Starte in kürzester Zeit deine Retrospektive – es ist keine Registrierung notwendig und komplett kostenlos.", "startButton": "Jetzt loslegen", diff --git a/src/i18n/en/translation.json b/src/i18n/en/translation.json index dc20f6ddf6..8222289bcc 100644 --- a/src/i18n/en/translation.json +++ b/src/i18n/en/translation.json @@ -320,7 +320,7 @@ "english": "English" }, "Homepage": { - "developers": "© 2021-2025, provided by inovex with ❤️", + "developers": "© 2021-{{currentYear}}, provided by inovex with ❤️", "teaserTitle": "Reach new heights with your team and start your first retrospective.", "teaserText": "Start your first collaborative session in an instant - no registration required and completely free.", "startButton": "Start now", diff --git a/src/routes/Homepage/Homepage.tsx b/src/routes/Homepage/Homepage.tsx index 3d216f1127..9e8e4136ae 100644 --- a/src/routes/Homepage/Homepage.tsx +++ b/src/routes/Homepage/Homepage.tsx @@ -21,6 +21,8 @@ export const Homepage = withTranslation()(() => { const {user} = useAppSelector((state) => state.auth); const dispatch = useAppDispatch(); + const currentYear = new Date().getFullYear(); + const changeLanguage = (language: string) => () => { i18n.changeLanguage(language).then(() => { document.documentElement.lang = i18n.language; @@ -102,6 +104,7 @@ export const Homepage = withTranslation()(() => { components={{ inovex: , }} + values={{currentYear}} />