mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
electron: Fix loading of i18n
This commit is contained in:
15
src/services/i18n.ts
Normal file
15
src/services/i18n.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import i18next from "i18next";
|
||||
import Backend from "i18next-fs-backend";
|
||||
|
||||
export async function initializeTranslations() {
|
||||
// Initialize translations
|
||||
await i18next.use(Backend).init({
|
||||
lng: "ro",
|
||||
fallbackLng: "en",
|
||||
ns: "server",
|
||||
backend: {
|
||||
loadPath: "translations/{{lng}}/{{ns}}.json"
|
||||
},
|
||||
debug: true
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user