Zum Inhalt springen
This is an unmaintained snapshot of the Astro v4 docs. View the latest docs.

i18n Not Enabled

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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

The astro:i18n module can not 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: {
defaultLocale: 'en',
locales: ['en', 'fr'],
},
})

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

See Also:

Wirke mit

Worum geht es?

Community