Implement multilingual support by integrating i18n for dynamic text rendering across the app. Added language selection modal in HomeScreen and updated various components to utilize localized strings. Updated package dependencies for async storage and localization.
This commit is contained in:
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import { View, Text, StyleSheet } from 'react-native';
|
||||
import Colors from '@/constants/Colors';
|
||||
import { FontAwesome } from '@expo/vector-icons';
|
||||
import i18n from '@/i18n';
|
||||
|
||||
type FeatureCardProps = {
|
||||
title: string;
|
||||
@@ -16,7 +17,7 @@ export default function FeatureCard({ title, description, isNew = false }: Featu
|
||||
<View style={[styles.container, { backgroundColor: Colors[colorScheme].secondary }]}>
|
||||
{isNew && (
|
||||
<View style={styles.newBadge}>
|
||||
<Text style={styles.newText}>New Experience</Text>
|
||||
<Text style={styles.newText}>{i18n.t('newExperience')}</Text>
|
||||
</View>
|
||||
)}
|
||||
<View style={styles.content}>
|
||||
|
||||
Reference in New Issue
Block a user