mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:43:38 +08:00
c3fd91670e
Re-lands #16119 and #17298 * Update eslint-config-discourse * Update linting workflow * Prettier-ignore stuff * Update template-lint config * Auto-fix template issues * Fix various template issues Mostly incorrect attributes and unused templates * Prettier js files * Fix template auto-fix regressions * Small css tweak Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
15 lines
279 B
JavaScript
15 lines
279 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;
|
|
}
|
|
};
|
|
})();
|