File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- "use client "
1
+ import { getTranslations } from "next-intl/server "
2
2
3
3
import { Image } from "@/components/Image"
4
4
import ParallaxImage from "@/components/Image/ParallaxImage"
5
5
import Morpher from "@/components/Morpher"
6
6
7
- import { useTranslation } from "@/hooks/useTranslation"
8
7
import TenYearBackgroundImage from "@/public/images/10-year-anniversary/10-year-background.png"
9
8
import TenYearGraphicImage from "@/public/images/10-year-anniversary/10-year-graphic.png"
10
9
11
- const TenYearHero = ( ) => {
12
- const { t } = useTranslation ( "page-10-year-anniversary" )
10
+ const TenYearHero = async ( { locale } : { locale : string } ) => {
11
+ const t = await getTranslations ( {
12
+ locale,
13
+ namespace : "page-10-year-anniversary" ,
14
+ } )
13
15
14
16
const WORDS = [
15
17
t ( "page-10-year-censorship-resistance" ) ,
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
77
77
return (
78
78
< I18nProvider locale = { locale } messages = { messages } >
79
79
< MainArticle className = "mx-auto flex w-full flex-col items-center" >
80
- < TenYearHero />
80
+ < TenYearHero locale = { locale } />
81
81
82
82
< div className = "mt-16 flex w-full flex-col gap-16 px-8 py-4 md:flex-row md:py-8" >
83
83
< div className = "flex flex-1 flex-col gap-5" >
You can’t perform that action at this time.
0 commit comments