Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update homepage copyright year #4761

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading