Ghost/core/frontend/services/theme-engine/i18n/index.js
Hannah Wolfe ad9b18e00f
Improved i18n to use DI for logging + config
- final preparation for moving i18n out of Ghost core
- logging is passed in via DI
- theme i18n needs a config value, but no need to pass all of config for one parameter, a better pattern is to pass the one value needed
2021-05-06 10:58:24 +01:00

8 lines
271 B
JavaScript

const config = require('../../../../shared/config');
const logging = require('../../../../shared/logging');
const ThemeI18n = require('./i18n');
module.exports = new ThemeI18n({logging, basePath: config.getContentPath('themes')});
module.exports.ThemeI18n = ThemeI18n;