feat: add internationalization support with next-intl

This commit is contained in:
beilunyang
2025-10-13 00:57:32 +08:00
parent 0fcc4b9e85
commit d175017b51
46 changed files with 1436 additions and 432 deletions
+11
View File
@@ -0,0 +1,11 @@
export const locales = ['en', 'zh-CN'] as const
export type Locale = typeof locales[number]
export const defaultLocale: Locale = 'en'
export const i18n = {
locales,
defaultLocale,
localePrefix: 'as-needed',
}