Files
Folo/apps/desktop/layer/main/src/lib/i18n.ts
T
2025-04-30 18:22:46 +08:00

19 lines
320 B
TypeScript

import i18next from "i18next"
import { resources } from "../@types/resources"
export const defaultNS = "native"
export const i18n = i18next.createInstance() as typeof i18next
i18n.init({
fallbackLng: {
default: ["en"],
"zh-TW": ["zh-CN", "en"],
},
defaultNS,
resources,
})
export const { t } = i18n