mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 15:32:26 +08:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
23a1826001
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.ENV.EXTEND_PROTOTYPES) {
|
||||
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