PLT-6518 Fixed user's locale not being loaded with redux actions (#6359)

* Stopped ManageLanguages component from mutating user

* Removed obsolete reference to mm_user

* PLT-6518 Fixed user's locale not being loaded with redux actions
Этот коммит содержится в:
Harrison Healey
2017-05-09 16:00:40 -04:00
коммит произвёл Joram Wilander
родитель e52ab9737e
Коммит 0c701cc1d0
7 изменённых файлов: 27 добавлений и 19 удалений

Просмотреть файл

@@ -20,8 +20,8 @@ export default class Root extends React.Component {
constructor(props) {
super(props);
this.state = {
locale: 'en',
translations: null
locale: LocalizationStore.getLocale(),
translations: LocalizationStore.getTranslations()
};
this.localizationChanged = this.localizationChanged.bind(this);
@@ -113,7 +113,7 @@ export default class Root extends React.Component {
LocalizationStore.addChangeListener(this.localizationChanged);
// Get our localizaiton
GlobalActions.loadDefaultLocale();
GlobalActions.loadCurrentLocale();
}
componentWillUnmount() {