@@ -14,6 +14,7 @@ import * as Haptics from "expo-haptics";
1414import { useNavigation } from "@react-navigation/native" ;
1515import { useRouter } from "expo-router" ;
1616import { useTheme } from "../theme/ThemeProvider" ;
17+ import { useI18n } from "../i18n/I18nProvider" ;
1718import { useOfflineData } from "../hooks/useOfflineData" ;
1819import { useInfiniteScroll } from "../hooks/useInfiniteScroll" ;
1920import {
@@ -152,6 +153,7 @@ async function fetchHomeData(): Promise<HomeData> {
152153
153154export function HomeScreen ( ) {
154155 const { colors, isDark } = useTheme ( ) ;
156+ const { t } = useI18n ( ) ;
155157 const router = useRouter ( ) ;
156158 const navigation =
157159 useNavigation < NativeStackNavigationProp < RootStackParamList > > ( ) ;
@@ -219,12 +221,12 @@ export function HomeScreen() {
219221 < View style = { styles . section } >
220222 < View style = { styles . sectionHeader } >
221223 < Text style = { [ styles . sectionTitle , { color : colors . text } ] } >
222- Trending portfolios
224+ { t ( "home.trendingTitle" ) }
223225 </ Text >
224226 < Text
225227 style = { [ styles . sectionCaption , { color : colors . textSecondary } ] }
226228 >
227- Selected from top user activity.
229+ { t ( "home.trendingCaption" ) }
228230 </ Text >
229231 </ View >
230232 < FlatList
@@ -284,44 +286,43 @@ export function HomeScreen() {
284286 >
285287 < View >
286288 < Text style = { [ styles . title , { color : colors . text } ] } >
287- Hello, Stellar Creator
289+ { t ( "home.greeting" ) }
288290 </ Text >
289291 < Text style = { [ styles . subtitle , { color : colors . textSecondary } ] } >
290- Track trending portfolios, project demand, and secure your session
291- with biometric access.
292+ { t ( "home.subtitle" ) }
292293 </ Text >
293294 </ View >
294295 < View style = { styles . heroActions } >
295296 < ActionButton
296- title = "Use Biometrics"
297+ title = { t ( "home.useBiometrics" ) }
297298 onPress = { ( ) => navigation . navigate ( "BiometricAuth" ) }
298299 variant = "primary"
299300 accessibilityLabel = "Open biometric authentication screen"
300301 />
301302 < ActionButton
302- title = "Refresh"
303+ title = { t ( "home.refresh" ) }
303304 onPress = { handleRefresh }
304305 variant = "secondary"
305306 accessibilityLabel = "Refresh home content"
306307 />
307308 </ View >
308309 < View style = { styles . featureActions } >
309310 < ActionButton
310- title = "Audio"
311+ title = { t ( "home.audio" ) }
311312 onPress = { handleNavigateToAudio }
312313 variant = "secondary"
313314 style = { styles . featureButton }
314315 accessibilityLabel = "Open audio playback screen"
315316 />
316317 < ActionButton
317- title = "Multi-Sig"
318+ title = { t ( "home.multiSig" ) }
318319 onPress = { handleNavigateToMultiSig }
319320 variant = "secondary"
320321 style = { styles . featureButton }
321322 accessibilityLabel = "Open multi-signature approval screen"
322323 />
323324 < ActionButton
324- title = "Peer Transfer"
325+ title = { t ( "home.peerTransfer" ) }
325326 onPress = { handleNavigateToP2P }
326327 variant = "secondary"
327328 style = { styles . featureButton }
@@ -341,7 +342,7 @@ export function HomeScreen() {
341342 ] }
342343 >
343344 < Text style = { [ styles . staleText , { color : colors . warning } ] } >
344- Cached data from { cachedAt . toLocaleTimeString ( ) }
345+ { t ( "home.cachedData" , { time : cachedAt . toLocaleTimeString ( ) } ) }
345346 </ Text >
346347 </ View >
347348 ) }
@@ -350,7 +351,7 @@ export function HomeScreen() {
350351 < View style = { styles . loadingWrapper } >
351352 < ActivityIndicator color = { colors . primary } size = "large" />
352353 < Text style = { [ styles . loadingText , { color : colors . textSecondary } ] } >
353- Loading portfolio analytics…
354+ { t ( "home.loadingAnalytics" ) }
354355 </ Text >
355356 </ View >
356357 ) : (
@@ -359,7 +360,7 @@ export function HomeScreen() {
359360 { trendingSection }
360361 < ProjectBountyList
361362 items = { data ?. projectBountyItems ?? [ ] }
362- title = "Project & Bounty feed"
363+ title = { t ( "home.projectBountyFeed" ) }
363364 onSelect = { onItemSelect }
364365 />
365366 </ >
0 commit comments