mirror of
https://github.com/101island/lolisland.us.git
synced 2026-03-01 11:49:43 +08:00
feat(i18n): add locale detection and default redirect
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user