Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.3 KB

i18n-not-enabled.mdx

File metadata and controls

36 lines (27 loc) · 1.3 KB
title Internationalization routing is not enabled.
i18nReady true
githubURL https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts

import DontEditWarning from '~/components/DontEditWarning.astro'

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: