跳到內容

i18n Not Enabled

本頁內容尚未翻譯。

i18nNotEnabled: The astro:i18n module cannot be used without enabling i18n in your Astro config.

What went wrong?

The astro:i18n module cannot be used without enabling i18n in your Astro config. To enable i18n, add a default locale and a list of supported locales to your Astro config:

import { defineConfig } from 'astro'
export default defineConfig({
 i18n: {
	 locales: ['en', 'fr'],
	 defaultLocale: 'en',
	},
})

For more information on internationalization support in Astro, see our Internationalization guide.

See Also:

貢獻 社群 贊助