From 0f4aca3ded336667cc213d9a2a57f5041891be58 Mon Sep 17 00:00:00 2001 From: Vivian Plasencia Date: Mon, 20 Jan 2025 21:45:32 +0100 Subject: [PATCH] docs: make year update dynamically on website and docs (#945) * docs: make year update dynamically on website and docs * docs(docs): make year update dynamically --- apps/docs/i18n/en/code.json | 3 --- apps/docs/i18n/es/code.json | 3 --- apps/docs/src/theme/Footer/index.tsx | 6 +----- apps/website/src/components/Footer.tsx | 2 +- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/apps/docs/i18n/en/code.json b/apps/docs/i18n/en/code.json index c6c3354c..5fe5d235 100644 --- a/apps/docs/i18n/en/code.json +++ b/apps/docs/i18n/en/code.json @@ -390,8 +390,5 @@ }, "footer.right.connect.link2": { "message": "X (Twitter)" - }, - "footer.copyright": { - "message": "Copyright © 2024 Ethereum Foundation" } } diff --git a/apps/docs/i18n/es/code.json b/apps/docs/i18n/es/code.json index 92695006..9764f34a 100644 --- a/apps/docs/i18n/es/code.json +++ b/apps/docs/i18n/es/code.json @@ -390,8 +390,5 @@ }, "footer.right.connect.link2": { "message": "X (Twitter)" - }, - "footer.copyright": { - "message": "Copyright © 2024 Ethereum Foundation" } } diff --git a/apps/docs/src/theme/Footer/index.tsx b/apps/docs/src/theme/Footer/index.tsx index 4b8d1a86..42752b0c 100644 --- a/apps/docs/src/theme/Footer/index.tsx +++ b/apps/docs/src/theme/Footer/index.tsx @@ -54,11 +54,7 @@ function Footer() {
-

- {translate({ - id: "footer.copyright" - })} -

+

Copyright © {new Date().getFullYear()} Ethereum Foundation

- Copyright © 2024 Ethereum Foundation + Copyright © {new Date().getFullYear()} Ethereum Foundation