From 0c701cc1d02c3d3b630050a0547f9dc632596013 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 9 May 2017 16:00:40 -0400 Subject: 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 --- webapp/i18n/i18n.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'webapp/i18n') diff --git a/webapp/i18n/i18n.jsx b/webapp/i18n/i18n.jsx index 9ea697c65..1e3efd7ff 100644 --- a/webapp/i18n/i18n.jsx +++ b/webapp/i18n/i18n.jsx @@ -133,14 +133,11 @@ export function getLanguages() { } export function getLanguageInfo(locale) { - if (!availableLanguages) { - setAvailableLanguages(); - } - return availableLanguages[locale]; + return getAllLanguages()[locale]; } export function isLanguageAvailable(locale) { - return Boolean(availableLanguages[locale]); + return Boolean(getLanguages()[locale]); } export function safariFix(callback) { -- cgit v1.2.3-1-g7c22