mirror of
https://github.com/usememos/memos.git
synced 2025-01-03 11:57:48 +03:00
24 lines
457 B
TypeScript
24 lines
457 B
TypeScript
import i18n from "i18next";
|
|
import { initReactI18next } from "react-i18next";
|
|
import enLocale from "./locales/en.json";
|
|
import zhLocale from "./locales/zh.json";
|
|
import viLocale from "./locales/vi.json";
|
|
|
|
i18n.use(initReactI18next).init({
|
|
resources: {
|
|
en: {
|
|
translation: enLocale,
|
|
},
|
|
zh: {
|
|
translation: zhLocale,
|
|
},
|
|
vi: {
|
|
translation: viLocale,
|
|
},
|
|
},
|
|
lng: "en",
|
|
fallbackLng: "en",
|
|
});
|
|
|
|
export default i18n;
|