Lazy loading is only valid in react , vue , solid , svelte
const t = useLocales({ zh: () => import("./locales/zh"), en: () => import("./locales/en"),});
const t = tLocales({ zh: () => import("./locales/zh"), en: () => import("./locales/en"),});
./locales/en.ts
const en_locale = { world: "World",};export default en_locale;
./locales/zh.ts
const zh_locale = { world: "世界",};export default zh_locale;