feat(i18n): add locale detection and default redirect

This commit is contained in:
2025-12-24 11:52:55 +08:00
parent 4c5982b082
commit a5b060a777
24 changed files with 1227 additions and 585 deletions

View File

@@ -6,4 +6,11 @@ import { defineConfig } from "astro/config";
export default defineConfig({
adapter: cloudflare(),
integrations: [react()],
i18n: {
defaultLocale: "en",
locales: ["en", "zh-cn"],
routing: {
prefixDefaultLocale: true,
},
},
});