mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
Revert "FIX: simpler w function check (#7496)"
This reverts commit 2570311718
.
This commit is contained in:
parent
22d6203eb7
commit
0c0d05e8f2
2
vendor/assets/javascripts/i18n-patches.js
vendored
2
vendor/assets/javascripts/i18n-patches.js
vendored
|
@ -13,7 +13,7 @@
|
|||
return oldI18ntoHumanSize.apply(this, [number, options]);
|
||||
};
|
||||
|
||||
if ("w" in String.prototype) {
|
||||
if (Ember.typeOf(String.prototype.w) === "function") {
|
||||
String.prototype.i18n = function(options) {
|
||||
return I18n.t(String(this), options);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user