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:
parent
23367ee0bb
commit
218df4b5a4
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue