mirror of
https://github.com/zadam/trilium.git
synced 2025-12-08 00:14:25 +01:00
15 lines
356 B
JavaScript
15 lines
356 B
JavaScript
import library_loader from "./library_loader.js";
|
|
|
|
await library_loader.requireLibrary(library_loader.I18NEXT);
|
|
|
|
await i18next
|
|
.use(i18nextHttpBackend)
|
|
.init({
|
|
lng: "en",
|
|
debug: true,
|
|
backend: {
|
|
loadPath: `/${window.glob.assetPath}/translations/{{lng}}/{{ns}}.json`
|
|
}
|
|
});
|
|
|
|
export const t = i18next.t; |