Expanded requires of lib/common i18n and events

- Having these as destructured from the same package is hindering refactoring now
- Events should really only ever be used server-side
- i18n should be a shared module for now so it can be used everywhere until we figure out something better
- Having them seperate also allows us to lint them properly
This commit is contained in:
Hannah Wolfe 2021-04-27 14:18:04 +01:00 committed by naz
parent 119c013229
commit b8d64bfb28

View File

@ -6,7 +6,7 @@ const errors = require('@tryghost/errors');
const debug = require('ghost-ignition').debug('importer:members');
const membersService = require('../index');
const models = require('../../../models');
const {i18n} = require('../../../lib/common');
const i18n = require('../../../lib/common/i18n');
const logging = require('../../../../shared/logging');
const handleUnrecognizedError = (error) => {