mirror of
https://github.com/discourse/discourse.git
synced 2025-03-19 13:45:32 +08:00
Revert "Revert "FIX: simpler w function check (#7496)""
This reverts commit 0c0d05e8f2163336dc0306f15f5a942014a13177.
This commit is contained in:
parent
0c0d05e8f2
commit
d6452963cd
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 (Ember.typeOf(String.prototype.w) === "function") {
|
||||
if ("w" in String.prototype) {
|
||||
String.prototype.i18n = function(options) {
|
||||
return I18n.t(String(this), options);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user