2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/lib/javascripts/messageformat-lookup.js
2020-05-07 16:37:02 +02:00

14 lines
277 B
JavaScript

(function() {
I18n.messageFormat = function(key, options) {
var fn = I18n._compiledMFs[key];
if (fn) {
try {
return fn(options);
} catch (err) {
return err.message;
}
} else {
return "Missing Key: " + key;
}
};
})();