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:
2025-08-16 22:24:47 +05:00
parent 0f8c9b5e55
commit e431c42df1
13 changed files with 460 additions and 38 deletions

View File

@@ -3,6 +3,7 @@ import { Tabs } from 'expo-router';
import { useColorScheme } from 'react-native';
import Colors from '@/constants/Colors';
import i18n from '@/i18n';
/**
* You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/
@@ -30,14 +31,14 @@ export default function TabLayout() {
<Tabs.Screen
name="home"
options={{
title: 'Home',
title: i18n.t('home'),
tabBarIcon: ({ color }) => <TabBarIcon name="home" color={color} />,
}}
/>
<Tabs.Screen
name="services"
options={{
title: 'Services',
title: i18n.t('services'),
tabBarIcon: ({ color }) => <TabBarIcon name="th-large" color={color} />,
}}
/>