From b8e4d46a7147c5bf1652d617b79eba897040829f Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Fri, 20 Sep 2024 22:31:36 +0300 Subject: [PATCH] Fix i18n top-level await --- src/i18n.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/i18n.js b/src/i18n.js index 3895427..4bf10ec 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -3,7 +3,7 @@ import Backend from 'i18next-http-backend'; import { initReactI18next } from 'react-i18next'; import { load } from 'js-yaml'; -await i18n +i18n .use(Backend) .use(initReactI18next) .init({ @@ -15,6 +15,7 @@ await i18n interpolation: { escapeValue: false, }, - }); + }) + .then(); export default i18n;