@@ -7,6 +7,8 @@ import { Button, ButtonLink } from "@/components/ui/buttons/Button"
7
7
8
8
import { cn } from "@/lib/utils/cn"
9
9
10
+ import { useTranslation } from "@/hooks/useTranslation"
11
+
10
12
type Story = {
11
13
name : string
12
14
storyEnglish : string
@@ -23,6 +25,7 @@ type StoriesProps = {
23
25
const STORIES_SHOWN = 5
24
26
25
27
const Stories = ( { stories } : StoriesProps ) => {
28
+ const { t } = useTranslation ( "page-10-year-anniversary" )
26
29
const [ flippedCards , setFlippedCards ] = useState < Record < number , boolean > > ( { } )
27
30
const [ expandedStories , setExpandedStories ] = useState <
28
31
Record < number , boolean >
@@ -119,15 +122,15 @@ const Stories = ({ stories }: StoriesProps) => {
119
122
eventCategory : "10-year-anniversary" ,
120
123
} }
121
124
>
122
- Read more
125
+ { t ( "page-10-year-stories-read- more" ) }
123
126
</ Button >
124
127
</ div >
125
128
) }
126
129
</ div >
127
130
{ story . storyOriginal && (
128
131
< div >
129
132
< p className = "text-xs text-body-medium" >
130
- English translation
133
+ { t ( "page-10-year-stories-english- translation" ) }
131
134
</ p >
132
135
< Button
133
136
onClick = { ( ) => handleFlip ( index ) }
@@ -139,7 +142,7 @@ const Stories = ({ stories }: StoriesProps) => {
139
142
eventCategory : "10-year-anniversary" ,
140
143
} }
141
144
>
142
- Show original
145
+ { t ( "page-10-year-stories-show- original" ) }
143
146
</ Button >
144
147
</ div >
145
148
) }
@@ -198,14 +201,14 @@ const Stories = ({ stories }: StoriesProps) => {
198
201
eventCategory : "10-year-anniversary" ,
199
202
} }
200
203
>
201
- Read more
204
+ { t ( "page-10-year-stories-read- more" ) }
202
205
</ Button >
203
206
</ div >
204
207
) }
205
208
</ div >
206
209
< div >
207
210
< p className = "text-xs text-body-medium" >
208
- Original language
211
+ { t ( "page-10-year-stories-original- language" ) }
209
212
</ p >
210
213
< Button
211
214
onClick = { ( ) => handleFlip ( index ) }
@@ -217,7 +220,7 @@ const Stories = ({ stories }: StoriesProps) => {
217
220
eventCategory : "10-year-anniversary" ,
218
221
} }
219
222
>
220
- Show English
223
+ { t ( "page-10-year-stories-show-english" ) }
221
224
</ Button >
222
225
</ div >
223
226
< p className = "mt-2 text-sm text-body-medium" >
@@ -246,7 +249,7 @@ const Stories = ({ stories }: StoriesProps) => {
246
249
} }
247
250
variant = "outline"
248
251
>
249
- Show more
252
+ { t ( "page-10-year-stories-show- more" ) }
250
253
</ Button >
251
254
</ div >
252
255
) }
0 commit comments