mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(nx/desktop): backend not imported well
This commit is contained in:
parent
5d02afe7f8
commit
5dd2b216a5
@ -1,5 +1,4 @@
|
||||
import i18next from "i18next";
|
||||
import Backend from "i18next-fs-backend";
|
||||
import options from "./options.js";
|
||||
import sql_init from "./sql_init.js";
|
||||
import { join } from "path";
|
||||
@ -77,6 +76,7 @@ const LOCALES: Locale[] = [
|
||||
|
||||
export async function initializeTranslations() {
|
||||
const resourceDir = getResourceDir();
|
||||
const Backend = (await import("i18next-fs-backend")).default;
|
||||
|
||||
// Initialize translations
|
||||
await i18next.use(Backend).init({
|
||||
|
Loading…
x
Reference in New Issue
Block a user