0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Removed i18n.js from the bridge

- part of our work to deprecate our broken i18n implementation
This commit is contained in:
Hannah Wolfe 2021-06-24 20:01:29 +01:00
parent 23367ee0bb
commit 218df4b5a4
No known key found for this signature in database
GPG key ID: 9F8C7532D0A6BA55

View file

@ -12,10 +12,14 @@ const errors = require('@tryghost/errors');
const config = require('./shared/config'); const config = require('./shared/config');
const logging = require('@tryghost/logging'); const logging = require('@tryghost/logging');
const events = require('./server/lib/common/events'); const events = require('./server/lib/common/events');
const i18n = require('./shared/i18n'); const tpl = require('@tryghost/tpl');
const themeEngine = require('./frontend/services/theme-engine'); const themeEngine = require('./frontend/services/theme-engine');
const settingsCache = require('./server/services/settings/cache'); const settingsCache = require('./server/services/settings/cache');
const messages = {
activateFailed: 'Unable to activate the theme "{theme}".'
};
class Bridge { class Bridge {
constructor() { constructor() {
/** /**
@ -54,7 +58,7 @@ class Bridge {
} }
} catch (err) { } catch (err) {
logging.error(new errors.InternalServerError({ logging.error(new errors.InternalServerError({
message: i18n.t('errors.middleware.themehandler.activateFailed', {theme: loadedTheme.name}), message: tpl(messages.activateFailed, {theme: loadedTheme.name}),
err: err err: err
})); }));
} }