From 02492679bd084cb5954c10cf1fa34879cd7399f5 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 8 Mar 2019 15:12:13 +0100 Subject: [PATCH] FIX: experimental fix to Ember.ENV.EXTEND_PROTOTYPES rare exception (#7133) --- vendor/assets/javascripts/i18n-patches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/assets/javascripts/i18n-patches.js b/vendor/assets/javascripts/i18n-patches.js index d7646901f91..61c0a526e9d 100644 --- a/vendor/assets/javascripts/i18n-patches.js +++ b/vendor/assets/javascripts/i18n-patches.js @@ -13,7 +13,7 @@ return oldI18ntoHumanSize.apply(this, [number, options]); }; - if (Ember.ENV.EXTEND_PROTOTYPES) { + if (Ember.typeOf(String.prototype.w) === "function") { String.prototype.i18n = function(options) { return I18n.t(String(this), options); };