FIX: Activate account page JS error with I18n

This commit is contained in:
Robin Ward 2015-01-14 14:00:47 -05:00
parent 07d3f0fc26
commit c4ca6b9934

View file

@ -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);
}; };
} }
}
})(); })();