From b390b266e2db7e785193fc36a563c7cb952ab1c4 Mon Sep 17 00:00:00 2001 From: nour guidara Date: Fri, 25 Apr 2025 11:10:46 +0100 Subject: [PATCH] bug fix in imports\i18n\index.js --- imports/i18n/index.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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(); + })(); +}