Skip to content

Commit

Permalink
chore: update homepage copyright year (#4761)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwehn42 authored Jan 13, 2025
1 parent fd20526 commit a7b3f15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/i18n/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
"english": "Englisch"
},
"Homepage": {
"developers": "© 2021-2023, mit ❤️ von <inovex>inovex</inovex>",
"developers": "© 2021-{{currentYear}}, mit ❤️ von <inovex>inovex</inovex>",
"teaserTitle": "Bringe dich & dein <team>Team</team> ans Ziel mit der <retrospective>Retrospektive.</retrospective>",
"teaserText": "Starte in kürzester Zeit deine Retrospektive – es ist keine Registrierung notwendig und komplett kostenlos.",
"startButton": "Jetzt loslegen",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
"english": "English"
},
"Homepage": {
"developers": "© 2021-2023, provided by <inovex>inovex</inovex> with ❤️",
"developers": "© 2021-{{currentYear}}, provided by <inovex>inovex</inovex> with ❤️",
"teaserTitle": "Reach new heights with your <team>team</team> and start your first <retrospective>retrospective.</retrospective>",
"teaserText": "Start your first collaborative session in an instant - no registration required and completely free.",
"startButton": "Start now",
Expand Down
3 changes: 3 additions & 0 deletions src/routes/Homepage/Homepage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -102,6 +104,7 @@ export const Homepage = withTranslation()(() => {
components={{
inovex: <InovexAnchor />,
}}
values={{currentYear}}
/>
</span>
</div>
Expand Down

0 comments on commit a7b3f15

Please sign in to comment.