Bug 1450656 - Revert changeset b70d5eaa7921. a=jcristau
authorRyan VanderMeulen <ryanvm@gmail.com>
Sun, 27 May 2018 13:01:49 -0400
changeset 802262 91ef127d6086546d9db3bac3343e328005718f6d
parent 802261 094590abbf52caa2634bdf09c882b05fc87b5f5c
child 802263 093c9b992d3a85f573c9bcdcc4ab95a03ba0180c
push id111850
push userbmo:tom@mozilla.com
push dateThu, 31 May 2018 16:41:37 +0000
reviewersjcristau
bugs1450656
milestone60.0.2
Bug 1450656 - Revert changeset b70d5eaa7921. a=jcristau
intl/l10n/MessageContext.jsm
--- a/intl/l10n/MessageContext.jsm
+++ b/intl/l10n/MessageContext.jsm
@@ -1833,20 +1833,17 @@ class MessageContext {
     return resolve(this, args, message, errors);
   }
 
   _memoizeIntlObject(ctor, opts) {
     const cache = this._intls.get(ctor) || {};
     const id = JSON.stringify(opts);
 
     if (!cache[id]) {
-      let locales = this.locales.map(locale => {
-        return locale === "ja-JP-mac" ? "ja-JP-macos" : locale;
-      });
-      cache[id] = new ctor(locales, opts);
+      cache[id] = new ctor(this.locales, opts);
       this._intls.set(ctor, cache);
     }
 
     return cache[id];
   }
 }
 
 this.MessageContext = MessageContext;