summaryrefslogtreecommitdiffstats
path: root/webapp/i18n
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-05-09 16:00:40 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-05-09 16:00:40 -0400
commit0c701cc1d02c3d3b630050a0547f9dc632596013 (patch)
treeb26324ebe2457d5cc8f8547513c053add166fc3c /webapp/i18n
parente52ab9737ed4043b5c6236561939d50a8588b349 (diff)
downloadchat-0c701cc1d02c3d3b630050a0547f9dc632596013.tar.gz
chat-0c701cc1d02c3d3b630050a0547f9dc632596013.tar.bz2
chat-0c701cc1d02c3d3b630050a0547f9dc632596013.zip
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
Diffstat (limited to 'webapp/i18n')
-rw-r--r--webapp/i18n/i18n.jsx7
1 files changed, 2 insertions, 5 deletions
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) {