mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: Fallback locale was not available for extra translations
Translations from fallback locales were not sent to the client for admin_js and wizard_js.
This commit is contained in:
@ -54,8 +54,15 @@ export default function(name, opts) {
|
||||
andThen(() => {
|
||||
return this.render(opts.template);
|
||||
});
|
||||
|
||||
andThen(() => {
|
||||
opts.test.call(this, assert);
|
||||
try {
|
||||
opts.test.call(this, assert);
|
||||
} finally {
|
||||
if (opts.afterEach) {
|
||||
opts.afterEach.call(opts);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user