i18n Not Enabled
i18nNotEnabled: 在你的 Astro 配置中未启用
astro:i18n
模块。
出了什么问题?
段落标题 出了什么问题?在你的 Astro 配置中未启用 astro:i18n
模块。要启用国际化,请在你的 Astro 配置中添加默认语言环境和支持的语言环境列表:
import { defineConfig } from 'astro'export default defineConfig({ i18n: { defaultLocale: 'en', locales: ['en', 'fr'], },})
有关 Astro 中的国际化支持的更多信息,请参阅我们的国际化指南。
请参阅:
Error Reference