Skip to content

Commit

Permalink
Fix i18n top-level await
Browse files Browse the repository at this point in the history
  • Loading branch information
user890104 committed Sep 20, 2024
1 parent 41d9741 commit b8e4d46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -15,6 +15,7 @@ await i18n
interpolation: {
escapeValue: false,
},
});
})
.then();

export default i18n;

0 comments on commit b8e4d46

Please sign in to comment.