diff --git a/Views/Menu.js b/Views/Menu.js
index ff7666a..3f14ee6 100644
--- a/Views/Menu.js
+++ b/Views/Menu.js
@@ -9,10 +9,11 @@ import API from '../API.js';
import { useSnapshot } from 'valtio';
import GlobalState from '../contexts/GlobalState.js';
import ProfileCardHorizontal from "../components/ProfileCardHorizontal.js";
+import { reloadAppAsync } from "expo";
let MenuView = ({ navigation }) => {
- const [value, setValue] = React.useState('es');
+ const [value, setValue] = React.useState(i18n.locale);
const [myProfiles, setMyProfiles] = React.useState([]);
const gState = useSnapshot(GlobalState);
const viewer = gState.me;
@@ -34,6 +35,8 @@ let MenuView = ({ navigation }) => {
i18n.locale = locale;
Moment.locale(locale);
setValue(locale);
+ //Change local on profile then reload
+ //reloadAppAsync();
}
const profileLists = myProfiles.map((profile) => {
const DefaultPhoto = "https://social.emmint.com/uploads/e6f9be6d665dc43417701bf16a90122c.png";
@@ -73,19 +76,21 @@ let MenuView = ({ navigation }) => {
{profileLists}
- { navigation.navigate("ProfileSettings") }} left={props => } />
- } />
- { navigation.navigate("Logout") }} left={props => } />
+ { navigation.navigate("ProfileSettings") }} left={props => } />
+ } />
+ { navigation.navigate("Logout") }} left={props => } />
- { navigation.navigate("Invite") }} left={props => } />
- } />
+ { navigation.navigate("Invite") }} left={props => } />
+ } />
App Language:
changeLang(newValue)} value={value}>
+
+
diff --git a/i18nMessages.js b/i18nMessages.js
index 37de9ce..13ef08d 100644
--- a/i18nMessages.js
+++ b/i18nMessages.js
@@ -300,6 +300,7 @@ const messages = {
const i18n = new I18n(messages);
// Set the locale once at the beginning of your app.
+// TODO: Check user Lcale
i18n.locale = getLocales()[0].languageCode;
moment.locale(i18n.locale);