Browse Source

bug fix in imports\i18n\index.js

nour guidara 1 month ago
parent
commit
b390b266e2
1 changed files with 10 additions and 7 deletions
  1. 10 7
      imports/i18n/index.js

+ 10 - 7
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();
+  })();
+}