i18n: Set up client dependency to i18next

This commit is contained in:
Elian Doran
2024-07-20 09:32:56 +03:00
parent 33d6d51d59
commit 10ec7d6b2b
3 changed files with 11 additions and 1 deletions

View File

@@ -72,6 +72,8 @@ const MARKJS = {
]
};
const I18NEXT = { js: [ "node_modules/i18next/i18next.min.js" ] };
async function requireLibrary(library) {
if (library.css) {
library.css.map(cssUrl => requireCss(cssUrl));
@@ -129,5 +131,6 @@ export default {
FORCE_GRAPH,
MERMAID,
EXCALIDRAW,
MARKJS
MARKJS,
I18NEXT
}