Start localization without auto detecting

This commit is contained in:
Adolfo Reyna
2022-12-19 21:48:31 -05:00
parent 923bbabd3a
commit 2e55d41adf
8 changed files with 249 additions and 67 deletions

16
App.js
View File

@@ -16,7 +16,7 @@ import SinglePost from './Views/SinglePost.js'
import * as Device from 'expo-device';
import * as Notifications from 'expo-notifications';
import API from './API.js';
import i18n from "./i18nMessages.js";
const Tab = createBottomTabNavigator();
const Stack = createNativeStackNavigator();
@@ -118,7 +118,7 @@ const MainNavigation = () => {
name="Feed"
component={Feed}
options={{
tabBarLabel: 'Home',
tabBarLabel: i18n.t("message.feed"),
tabBarIcon: ({ color }) => (
<MaterialIcons name="home" color={color} size={26} />
),
@@ -135,7 +135,7 @@ const MainNavigation = () => {
name="Notifications"
component={NotificationsView}
options={{
tabBarLabel: 'Notifications',
tabBarLabel: i18n.t('message.notifications'),
tabBarIcon: ({ color }) => (
<MaterialIcons name="notifications" color={color} size={26} />
),
@@ -146,7 +146,7 @@ const MainNavigation = () => {
name="Search"
component={Search}
options={{
tabBarLabel: 'Search',
tabBarLabel: i18n.t('message.search'),
tabBarIcon: ({ color }) => (
<MaterialIcons name="search" color={color} size={26} />
),
@@ -157,7 +157,7 @@ const MainNavigation = () => {
name="Groups"
component={Groups}
options={{
tabBarLabel: 'Groups',
tabBarLabel: i18n.t('message.groups'),
tabBarIcon: ({ color }) => (
<MaterialIcons name="groups" color={color} size={26} />
),
@@ -168,7 +168,7 @@ const MainNavigation = () => {
name="Courses"
component={Courses}
options={{
tabBarLabel: 'Courses',
tabBarLabel: i18n.t('message.courses'),
tabBarIcon: ({ color }) => (
<MaterialIcons name="subscriptions" color={color} size={26} />
),
@@ -180,7 +180,7 @@ const MainNavigation = () => {
name="Logout"
component={Login}
options={{
tabBarLabel: 'Logout',
tabBarLabel: i18n.t('message.logout'),
tabBarIcon: ({ color }) => (
<MaterialIcons name="logout" color={color} size={26} />
),
@@ -212,7 +212,7 @@ export default function App() {
name="Profile"
component={Profile}
options={{
tabBarLabel: 'Profile'
tabBarLabel: i18n.t('message.profile')
}}
/>
<Stack.Screen name="SinglePost" component={SinglePost} />