Fixed translation

This commit is contained in:
Yohan Simard 2020-03-08 13:01:12 +01:00
parent b625ac7255
commit 3c767aea65

View file

@ -15,6 +15,8 @@ import {MaterialCommunityIcons} from "@expo/vector-icons";
import AsyncStorageManager from "../utils/AsyncStorageManager"; import AsyncStorageManager from "../utils/AsyncStorageManager";
import HeaderButton from "../components/HeaderButton"; import HeaderButton from "../components/HeaderButton";
import {withTheme} from 'react-native-paper'; import {withTheme} from 'react-native-paper';
import i18n from "i18n-js";
const TAB_ICONS = { const TAB_ICONS = {
Home: 'triangle', Home: 'triangle',
@ -154,7 +156,7 @@ function HomeStackComponent() {
options={({navigation}) => { options={({navigation}) => {
const openDrawer = getDrawerButton.bind(this, navigation); const openDrawer = getDrawerButton.bind(this, navigation);
return { return {
title: 'Home', title: i18n.t('screens.home'),
headerLeft: openDrawer headerLeft: openDrawer
}; };
}} }}
@ -225,6 +227,7 @@ function TabNavigator(props) {
<Tab.Screen <Tab.Screen
name="Home" name="Home"
component={HomeStackComponent} component={HomeStackComponent}
options={{title: i18n.t('screens.home')}}
/> />
<Tab.Screen <Tab.Screen
name="Proxiwash" name="Proxiwash"