Updated translations

This commit is contained in:
keplyx 2020-03-08 12:17:04 +01:00
parent 2f3e171b08
commit b625ac7255
4 changed files with 12 additions and 9 deletions

View file

@ -41,7 +41,7 @@ export default class SideBar extends React.Component<Props, State> {
// Dataset used to render the drawer // Dataset used to render the drawer
this.dataSet = [ this.dataSet = [
{ {
name: "Home", name: i18n.t('screens.home'),
route: "Main", route: "Main",
icon: "home", icon: "home",
}, },
@ -60,7 +60,7 @@ export default class SideBar extends React.Component<Props, State> {
icon: "calendar-check", icon: "calendar-check",
}, },
{ {
name: 'Bib', name: i18n.t('screens.bib'),
route: "BibScreen", route: "BibScreen",
icon: "book", icon: "book",
}, },

View file

@ -13,6 +13,7 @@ import DebugScreen from '../screens/DebugScreen';
import Sidebar from "../components/Sidebar"; import Sidebar from "../components/Sidebar";
import {createStackNavigator, TransitionPresets} from "@react-navigation/stack"; import {createStackNavigator, TransitionPresets} from "@react-navigation/stack";
import HeaderButton from "../components/HeaderButton"; import HeaderButton from "../components/HeaderButton";
import i18n from "i18n-js";
const defaultScreenOptions = { const defaultScreenOptions = {
gestureEnabled: true, gestureEnabled: true,
@ -41,7 +42,7 @@ function AboutStackComponent() {
options={({navigation}) => { options={({navigation}) => {
const openDrawer = getDrawerButton.bind(this, navigation); const openDrawer = getDrawerButton.bind(this, navigation);
return { return {
title: 'About', title: i18n.t('screens.about'),
headerLeft: openDrawer headerLeft: openDrawer
}; };
}} }}
@ -50,14 +51,14 @@ function AboutStackComponent() {
name="AboutDependenciesScreen" name="AboutDependenciesScreen"
component={AboutDependenciesScreen} component={AboutDependenciesScreen}
options={{ options={{
title: 'Dependencies' title: i18n.t('aboutScreen.libs')
}} }}
/> />
<AboutStack.Screen <AboutStack.Screen
name="DebugScreen" name="DebugScreen"
component={DebugScreen} component={DebugScreen}
options={{ options={{
title: 'Debug' title: i18n.t('aboutScreen.debug')
}} }}
/> />
</AboutStack.Navigator> </AboutStack.Navigator>
@ -79,7 +80,7 @@ function SettingsStackComponent() {
options={({navigation}) => { options={({navigation}) => {
const openDrawer = getDrawerButton.bind(this, navigation); const openDrawer = getDrawerButton.bind(this, navigation);
return { return {
title: 'Settings', title: i18n.t('screens.settings'),
headerLeft: openDrawer headerLeft: openDrawer
}; };
}} }}
@ -103,7 +104,7 @@ function SelfMenuStackComponent() {
options={({navigation}) => { options={({navigation}) => {
const openDrawer = getDrawerButton.bind(this, navigation); const openDrawer = getDrawerButton.bind(this, navigation);
return { return {
title: 'Menu RU', title: i18n.t('screens.menuSelf'),
headerLeft: openDrawer headerLeft: openDrawer
}; };
}} }}
@ -127,7 +128,7 @@ function AvailableRoomStackComponent() {
options={({navigation}) => { options={({navigation}) => {
const openDrawer = getDrawerButton.bind(this, navigation); const openDrawer = getDrawerButton.bind(this, navigation);
return { return {
title: 'Available Rooms', title: i18n.t('screens.availableRooms'),
headerLeft: openDrawer headerLeft: openDrawer
}; };
}} }}
@ -151,7 +152,7 @@ function BibStackComponent() {
options={({navigation}) => { options={({navigation}) => {
const openDrawer = getDrawerButton.bind(this, navigation); const openDrawer = getDrawerButton.bind(this, navigation);
return { return {
title: 'Bib', title: i18n.t('screens.bib'),
headerLeft: openDrawer headerLeft: openDrawer
}; };
}} }}

View file

@ -8,6 +8,7 @@
"menuSelf": "RU Menu", "menuSelf": "RU Menu",
"settings": "Settings", "settings": "Settings",
"availableRooms": "Available rooms", "availableRooms": "Available rooms",
"bib": "Bib'Box",
"bluemind": "INSA Mails", "bluemind": "INSA Mails",
"ent": "INSA ENT", "ent": "INSA ENT",
"about": "About", "about": "About",

View file

@ -8,6 +8,7 @@
"menuSelf": "Menu du RU", "menuSelf": "Menu du RU",
"settings": "Paramètres", "settings": "Paramètres",
"availableRooms": "Salles dispo", "availableRooms": "Salles dispo",
"bib": "Bib'Box",
"bluemind": "Mails INSA", "bluemind": "Mails INSA",
"ent": "ENT INSA", "ent": "ENT INSA",
"about": "À Propos", "about": "À Propos",