diff --git a/screens/Amicale/ProfileScreen.js b/screens/Amicale/ProfileScreen.js index ad04225..9f364c1 100644 --- a/screens/Amicale/ProfileScreen.js +++ b/screens/Amicale/ProfileScreen.js @@ -5,6 +5,7 @@ import AuthenticatedScreen from "../../components/AuthenticatedScreen"; import {openBrowser} from "../../utils/WebBrowser"; import ConnectionManager from "../../managers/ConnectionManager"; import HeaderButton from "../../components/HeaderButton"; +import i18n from 'i18n-js'; type Props = { navigation: Object, @@ -94,7 +95,7 @@ class ProfileScreen extends React.Component { - INFORMATIONS PERSONNELLES + {i18n.t("profileScreen.personalInformation")} } @@ -119,7 +120,7 @@ class ProfileScreen extends React.Component { mode="contained" onPress={() => openBrowser(this.data.link, this.colors.primary)} style={styles.editButton}> - EDITER INFOS + {i18n.t("profileScreen.editInformation")} @@ -131,8 +132,8 @@ class ProfileScreen extends React.Component { return ( { return ( { getMembershipItem(state: boolean) { return ( { getFieldValue(field: ?string) { return field !== null ? field - : 'NON RENSEIGNÉ'; + : i18n.t("profileScreen.noData"); } render() { diff --git a/translations/en.json b/translations/en.json index 800d488..6c1a142 100644 --- a/translations/en.json +++ b/translations/en.json @@ -210,6 +210,17 @@ "computerRoom": "Computer", "bibRoom": "Bib'Box" }, + "profileScreen": { + "personalInformation": "Personal information", + "noData": "No data", + "editInformation": "Edit Information", + "clubs": "Clubs", + "clubsSubtitle": "Clubs you are part of", + "membership": "Membership Fee", + "membershipSubtitle": "Allows you to take part in various activities", + "membershipPayed": "Payed", + "membershipNotPayed": "not Payed" + }, "loginScreen": { "title": "Amicale account", "subtitle": "Please enter your credentials", diff --git a/translations/fr.json b/translations/fr.json index d9b0d06..3926a24 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -13,9 +13,9 @@ "ent": "ENT INSA", "about": "À Propos", "debug": "Debug", - "login": "Se connecter", - "logout": "Se déconnecter", - "profile": "Profile" + "login": "Se Connecter", + "logout": "Se Déconnecter", + "profile": "Profil" }, "sidenav": { "divider1": "Sites étudiants", @@ -211,6 +211,17 @@ "computerRoom": "Ordi", "bibRoom": "Bib'Box" }, + "profileScreen": { + "personalInformation": "Informations Personnelles", + "noData": "Pas de données", + "editInformation": "Modifier les informations", + "clubs": "Clubs", + "clubsSubtitle": "Liste de vos clubs", + "membership": "Cotisation", + "membershipSubtitle": "Permet de participer à diverses activités", + "membershipPayed": "Payée", + "membershipNotPayed": "Non payée" + }, "loginScreen": { "title": "Compte Amicale", "subtitle": "Entrez vos identifiants",