mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 22:58:52 +02:00
20 lines
411 B
TypeScript
20 lines
411 B
TypeScript
import { default as i18next } from "i18next";
|
|
import HttpApi from 'i18next-http-backend';
|
|
import { initReactI18next } from "react-i18next";
|
|
|
|
i18next
|
|
.use(HttpApi)
|
|
.use(initReactI18next);
|
|
|
|
await i18next.init({
|
|
debug: true,
|
|
lng: "en",
|
|
fallbackLng: "en",
|
|
backend: {
|
|
loadPath: "/translations/{{lng}}/{{ns}}.json",
|
|
},
|
|
returnEmptyString: false
|
|
});
|
|
|
|
export const t = i18next.t;
|