2
0
Эх сурвалжийг харах

Reverted translation fix that sometimes did not work.

Thanks to xet7 !

Fixes #5751,
related https://github.com/wekan/wekan/pull/5748
Lauri Ojansivu 1 сар өмнө
parent
commit
c825895ceb
1 өөрчлөгдсөн 7 нэмэгдсэн , 10 устгасан
  1. 7 10
      imports/i18n/index.js

+ 7 - 10
imports/i18n/index.js

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