File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change
1
+ import { useTranslation } from "next-i18next"
2
+
1
3
import { cn } from "@/lib/utils/cn"
2
4
3
5
import { TwImage } from "../Image"
@@ -11,6 +13,7 @@ function ContributorsQuizBanner({
11
13
className,
12
14
...props
13
15
} : React . HTMLAttributes < HTMLDivElement > ) {
16
+ const { t } = useTranslation ( "common" )
14
17
return (
15
18
< aside
16
19
className = { cn (
@@ -40,15 +43,14 @@ function ContributorsQuizBanner({
40
43
className = { cn ( "flex-[1_1_50%]" , "gap-8 py-8 ps-8" , "pe-8 lg:pe-0" ) }
41
44
>
42
45
< Stack >
43
- < h2 > Unsure where to start? </ h2 >
46
+ < h2 > { t ( "contributor-quiz-banner-title" ) } </ h2 >
44
47
< p className = "text-lg text-body" >
45
- Take a quick quiz and find out how you can contribute on
46
- ethereum.org.
48
+ { t ( "contributor-quiz-banner-description" ) }
47
49
</ p >
48
50
</ Stack >
49
51
< div >
50
52
< ButtonLink href = "https://ethdotorg.typeform.com/contributor" >
51
- Take a quiz
53
+ { t ( "contributor- quiz-banner-button" ) }
52
54
</ ButtonLink >
53
55
</ div >
54
56
</ Stack >
Original file line number Diff line number Diff line change 441
441
"withdrawals" : " Staking withdrawals" ,
442
442
"wrapped-ether" : " Wrapped Ether" ,
443
443
"yes" : " Yes" ,
444
- "zero-knowledge-proofs" : " Zero-knowledge proofs"
444
+ "zero-knowledge-proofs" : " Zero-knowledge proofs" ,
445
+ "contributor-quiz-banner-title" : " Unsure where to start?" ,
446
+ "contributor-quiz-banner-description" : " Take a quick quiz and find out how you can contribute on ethereum.org." ,
447
+ "contributor-quiz-banner-button" : " Take a quiz"
445
448
}
You can’t perform that action at this time.
0 commit comments