From 6eaa1f69acd5f9fadce3f20a830ca5e29488a32b Mon Sep 17 00:00:00 2001 From: garronej Date: Mon, 1 Aug 2022 06:03:48 +0200 Subject: [PATCH] Fix dynamic imports --- src/lib/i18n/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/i18n/index.tsx b/src/lib/i18n/index.tsx index c6692fc8..88be6d46 100644 --- a/src/lib/i18n/index.tsx +++ b/src/lib/i18n/index.tsx @@ -100,10 +100,10 @@ export function __unsafe_useI18n(params: case "zh-CN": return import("./generated_messages/18.0.1/login/zh-CN"); default: - return {}; + return { "default": {} }; } })(), - ]); + ]).then(modules => modules.map(module => module.default)); if (!isMounted) { return;