瀏覽代碼

Reverted translation fix that sometimes did not work.

Thanks to xet7 !

Fixes #5751,
related https://github.com/wekan/wekan/pull/5748
Lauri Ojansivu 1 月之前
父節點
當前提交
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();
+})();
+