1
1
import { Fragment } from "react"
2
+ import { pick } from "lodash"
2
3
import dynamic from "next/dynamic"
3
4
import { notFound } from "next/navigation"
4
- import { getTranslations , setRequestLocale } from "next-intl/server"
5
+ import {
6
+ getMessages ,
7
+ getTranslations ,
8
+ setRequestLocale ,
9
+ } from "next-intl/server"
5
10
import { FaDiscord , FaGithub } from "react-icons/fa6"
6
11
import { FaXTwitter } from "react-icons/fa6"
7
12
@@ -19,6 +24,7 @@ import BentoCard from "@/components/Homepage/BentoCard"
19
24
import CodeExamples from "@/components/Homepage/CodeExamples"
20
25
import { getBentoBoxItems } from "@/components/Homepage/utils"
21
26
import ValuesMarqueeFallback from "@/components/Homepage/ValuesMarquee/Fallback"
27
+ import I18nProvider from "@/components/I18nProvider"
22
28
import BlockHeap from "@/components/icons/block-heap.svg"
23
29
import BuildAppsIcon from "@/components/icons/build-apps.svg"
24
30
import Calendar from "@/components/icons/calendar.svg"
@@ -162,6 +168,9 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
162
168
const tCommon = await getTranslations ( { locale, namespace : "common" } )
163
169
const { direction : dir , isRtl } = getDirection ( locale )
164
170
171
+ const allMessages = await getMessages ( { locale } )
172
+ const tenYearMessages = pick ( allMessages , "page-10-year-anniversary" )
173
+
165
174
const [
166
175
ethPrice ,
167
176
totalEthStaked ,
@@ -813,7 +822,9 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
813
822
id = "10-year-anniversary"
814
823
className = { cn ( locale !== "en" && "hidden" ) } // TODO: Show again when translations ready
815
824
>
816
- < TenYearHomeBanner />
825
+ < I18nProvider locale = { locale } messages = { tenYearMessages } >
826
+ < TenYearHomeBanner />
827
+ </ I18nProvider >
817
828
</ Section >
818
829
819
830
{ /* Recent posts */ }
0 commit comments