Ver Fonte

Merge branch 'fix-i18n-init-timing' of github.com:nourguidara/wekan into nourguidara-fix-i18n-init-timing

Lauri Ojansivu há 1 mês atrás
pai
commit
4d67a4641f
1 ficheiros alterados com 10 adições e 7 exclusões
  1. 10 7
      imports/i18n/index.js

+ 10 - 7
imports/i18n/index.js

@@ -2,13 +2,16 @@ import { TAPi18n } from './tap';
 import './accounts';
 import './accounts';
 import './moment';
 import './moment';
 
 
-if (Meteor.isClient) {
-  import './blaze';
-}
-
 export { TAPi18n };
 export { TAPi18n };
 
 
-(async () => {
-  await TAPi18n.init();
-})();
+if (Meteor.isClient) {
+  (async () => {
+    await import('./blaze');
+    await TAPi18n.init();
+  })();
+} else {
+  (async () => {
+    await TAPi18n.init();
+  })();
+}