Skip to content

Commit 25d4b5b

Browse files
geoffroybouetwjglerum
authored andcommitted
dynamic-copyright
1 parent 726e0f8 commit 25d4b5b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

public/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@
410410
"subtitle3": "Address"
411411
},
412412
"footer": {
413-
"copyright": "© 2024 Lunatech. All rights reserved.",
413+
"copyright": "All rights reserved.",
414414
"terms": "Terms of Services",
415415
"title1": "Plan",
416416
"title2": "Get connected",

public/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
"subtitle3": "Adresse"
549549
},
550550
"footer": {
551-
"copyright": "© 2024 Lunatech. Tous droits réservés.",
551+
"copyright": "Tous droits réservés.",
552552
"terms": "Conditions d'utilisation",
553553
"title1": "Plan",
554554
"title2": "Restez connecté",

src/components/Footer/Footer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ interface FooterProps {
1313
changeLanguage: (lng: string) => void;
1414
}
1515

16+
const currentYear = new Date().getFullYear();
17+
1618
const Footer: React.FC<FooterProps> = ({ changeLanguage }) => {
1719
useTranslation();
1820

@@ -62,7 +64,7 @@ const Footer: React.FC<FooterProps> = ({ changeLanguage }) => {
6264
</div>
6365

6466
<div className="footer__bottom">
65-
<p><Trans i18nKey="footer.copyright" /></p>
67+
<p>© {currentYear} Lunatech. <Trans i18nKey="footer.copyright" /></p>
6668
<a href="/Lunatech-General_Terms_and_Conditions.pdf" target="_blank"><Trans i18nKey="footer.terms" /></a>
6769
</div>
6870
</Container>

0 commit comments

Comments
 (0)