Installation
Install astro-intl using your preferred package manager.
✅ Astro 4–7 Compatible
astro-intl 2.2.2 officially supports Astro 7 while retaining Astro 4–6 compatibility. Astro 7 requires Node.js 22.12.0 or newer; no new astro-intl API or migration is required.
$
npm install astro-intl$
pnpm add astro-intl$
yarn add astro-intlOptionally register the integration in your astro.config.mjs:
astro.config.mjs
import { defineConfig } from 'astro/config';
import astroIntl from 'astro-intl';
export default defineConfig({
integrations: [astroIntl()],
});The integration is optional — it only logs a startup message. The core API works without it.