diff --git a/components/Sidebar/Sidebar.js b/components/Sidebar/Sidebar.js index 80d9b33..29cf2c3 100644 --- a/components/Sidebar/Sidebar.js +++ b/components/Sidebar/Sidebar.js @@ -65,7 +65,7 @@ class SideBar extends React.PureComponent { onlyWhenLoggedIn: true, }, { - name: "CLUBS", + name: i18n.t('clubs.clubList'), route: "ClubListScreen", icon: "account-group", onlyWhenLoggedIn: true, diff --git a/navigation/DrawerNavigator.js b/navigation/DrawerNavigator.js index 943b3d6..b5796c0 100644 --- a/navigation/DrawerNavigator.js +++ b/navigation/DrawerNavigator.js @@ -253,7 +253,7 @@ function ClubStackComponent() { options={({navigation}) => { const openDrawer = getDrawerButton.bind(this, navigation); return { - title: "CLUBS LIST", + title: i18n.t('clubs.clubList'), headerLeft: openDrawer }; }} @@ -264,7 +264,7 @@ function ClubStackComponent() { options={({navigation}) => { const openDrawer = getDrawerButton.bind(this, navigation); return { - title: "CLUBS DISPLAY", + title: "", headerLeft: openDrawer, ...TransitionPresets.ModalSlideFromBottomIOS, }; diff --git a/screens/Amicale/ClubDisplayScreen.js b/screens/Amicale/ClubDisplayScreen.js index e15a821..65a1d37 100644 --- a/screens/Amicale/ClubDisplayScreen.js +++ b/screens/Amicale/ClubDisplayScreen.js @@ -6,6 +6,7 @@ import HTML from "react-native-render-html"; import {Linking} from "expo"; import {Avatar, Card, Chip, Paragraph, withTheme} from 'react-native-paper'; import ImageModal from 'react-native-image-modal'; +import i18n from "i18n-js"; type Props = { navigation: Object, @@ -68,8 +69,8 @@ class ClubDisplayScreen extends React.Component { return (