diff --git a/imports/i18n/index.js b/imports/i18n/index.js index cc42e80aa..7dc821b29 100644 --- a/imports/i18n/index.js +++ b/imports/i18n/index.js @@ -2,13 +2,16 @@ import { TAPi18n } from './tap'; import './accounts'; import './moment'; -if (Meteor.isClient) { - import './blaze'; -} - export { TAPi18n }; -(async () => { - await TAPi18n.init(); -})(); +if (Meteor.isClient) { + (async () => { + await import('./blaze'); + await TAPi18n.init(); + })(); +} else { + (async () => { + await TAPi18n.init(); + })(); +}