Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
c66743ee3d3e76e946292f9bc514cf2e5afc9af2
discourse/lib/javascripts/messageformat-lookup.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
279 B
JavaScript
Raw Normal View History

DEV: Update linting setup and fix issues (#17345) 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>
2022-07-06 10:37:54 +02:00
(function () {
I18n.messageFormat = function (key, options) {
FIX: Allow message format translations to be overridden
2016-04-08 14:49:50 -04:00
var fn = I18n._compiledMFs[key];
if (fn) {
try {
return fn(options);
REFACTOR: removes unreachable statement (#9680)
2020-05-07 16:37:02 +02:00
} catch (err) {
FIX: Allow message format translations to be overridden
2016-04-08 14:49:50 -04:00
return err.message;
}
} else {
REFACTOR: removes unreachable statement (#9680)
2020-05-07 16:37:02 +02:00
return "Missing Key: " + key;
FIX: Allow message format translations to be overridden
2016-04-08 14:49:50 -04:00
}
};
})();
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 322ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API