mirror of
https://github.com/discourse/discourse.git
synced 2026-08-27 05:37:29 -05:00
FIX: Make getURL available to plugins while they are starting up in a similar load order
to the client app.
This commit is contained in:
@@ -24,9 +24,11 @@
|
||||
":$" : 'blush'
|
||||
};
|
||||
|
||||
Discourse.Dialect.on('register', function() {
|
||||
Object.keys(translations).forEach(function (code) {
|
||||
Discourse.Dialect.inlineReplace(code, imageFor(translations[code]));
|
||||
Object.keys(translations).forEach(function (code) {
|
||||
|
||||
var replacement = translations[code];
|
||||
Discourse.Dialect.inlineReplace(code, function (code) {
|
||||
return imageFor(replacement);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user