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
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
e52ab9737e
Коммит
0c701cc1d0
@@ -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() {
|
||||
|
||||
Ссылка в новой задаче
Block a user