'多语言'

This commit is contained in:
eric
2026-03-08 04:30:57 -05:00
parent 51eeea3be3
commit def36bf3aa
30 changed files with 6058 additions and 323 deletions

9
i18n/navigation.ts Normal file
View File

@@ -0,0 +1,9 @@
"use client";
export { LocaleLink as Link } from "@/app/lib/locale-link";
export { usePathname } from "@/app/lib/locale-link";
export {
useLocale,
useLocaleRouter as useRouter,
useTranslation,
} from "@/app/context/LocaleContext";

5
i18n/routing.ts Normal file
View File

@@ -0,0 +1,5 @@
export const routing = {
locales: ["zh", "en"] as const,
defaultLocale: "zh" as const,
localePrefix: "always" as const,
};