mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: Activate account page JS error with I18n
This commit is contained in:
parent
07d3f0fc26
commit
c4ca6b9934
1 changed files with 18 additions and 16 deletions
2
vendor/assets/javascripts/i18n-patches.js
vendored
2
vendor/assets/javascripts/i18n-patches.js
vendored
|
@ -1,4 +1,5 @@
|
||||||
(function() {
|
(function() {
|
||||||
|
if (typeof I18n !== "undefined") {
|
||||||
var oldI18nlookup = I18n.lookup;
|
var oldI18nlookup = I18n.lookup;
|
||||||
I18n.lookup = function(scope, options) {
|
I18n.lookup = function(scope, options) {
|
||||||
return oldI18nlookup.apply(this, ["js." + scope, options]);
|
return oldI18nlookup.apply(this, ["js." + scope, options]);
|
||||||
|
@ -17,4 +18,5 @@
|
||||||
return I18n.t(String(this), options);
|
return I18n.t(String(this), options);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue