From 4b6c3b2f3786117cc4d8a931c4810dc3ca30bb0f Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 19 Oct 2022 15:26:37 +0200 Subject: [PATCH] properly await promise --- packages/backend/src/misc/i18n.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/misc/i18n.ts b/packages/backend/src/misc/i18n.ts index 25f059bb6..6fab0b2ff 100644 --- a/packages/backend/src/misc/i18n.ts +++ b/packages/backend/src/misc/i18n.ts @@ -1,4 +1,4 @@ -const locales = import('../../../../locales/index.js').then(mod => mod.default); +const locales = await import('../../../../locales/index.js').then(mod => mod.default); export class I18n { public ts: Record;