Open Source · MIT License

i18n for Astro, done right.

Simple and powerful internationalization for Astro

A type-safe i18n solution inspired by next-intl, designed specifically for Astro projects.

$ npm install astro-intl

Why Astro-intl?

Everything you need for internationalization

No Props Drilling

Access translations anywhere without passing locale through components

Type-Safe

Full TypeScript support with autocomplete for translation keys

Dynamic Loading

Messages are loaded only when needed, optimizing bundle size

Namespaces

Organize translations by categories for better maintainability

Rich Text Support

Interpolate HTML or React components directly in translations

Simple API

Intuitive API inspired by next-intl, easy to learn and use

Ready to go global?

Add astro-intl to your project in minutes and start serving users in their language.

Get Started