mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-13 06:31:33 +08:00
15 lines
356 B
TypeScript
15 lines
356 B
TypeScript
![]() |
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
|
||
|
});
|
||
|
}
|