From c825895cebd24355d076741512c9aa16844393d9 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 25 Apr 2025 22:06:06 +0300 Subject: [PATCH] Reverted translation fix that sometimes did not work. Thanks to xet7 ! Fixes #5751, related https://github.com/wekan/wekan/pull/5748 --- imports/i18n/index.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/imports/i18n/index.js b/imports/i18n/index.js index 7dc821b29..cc42e80aa 100644 --- a/imports/i18n/index.js +++ b/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(); +})(); +