mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
fix(monorepo/server): get translations to work
This commit is contained in:
@@ -80,11 +80,12 @@ export async function initializeTranslations() {
|
||||
|
||||
// Initialize translations
|
||||
await i18next.use(Backend).init({
|
||||
debug: true,
|
||||
lng: getCurrentLanguage(),
|
||||
fallbackLng: "en",
|
||||
ns: "server",
|
||||
backend: {
|
||||
loadPath: join(resourceDir, "translations/{{lng}}/{{ns}}.json")
|
||||
loadPath: join(resourceDir, "assets/translations/{{lng}}/{{ns}}.json")
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user