diff --git a/src/i18n/de/translation.json b/src/i18n/de/translation.json index 024f052fed..4d27b1bad0 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-{{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 d28d36916a..8222289bcc 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-{{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}} />