Open Source · MIT License

i18n for Astro, zero friction.

Simple and powerful internationalization for Astro

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

$ npm install astro-intl
$ pnpm add astro-intl
$ yarn add 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

Framework Support

Use astro-intl with your favorite UI framework

Astro Astro Available
React React Available Svelte Svelte Available
Preact Preact Coming Soon
Vue Vue Coming Soon
SolidJS SolidJS Coming Soon

Using astro-intl in production?

Tell us about your project and share your experience with the library. Your feedback helps us improve and gives confidence to other developers.

What kind of project are you building with astro-intl?

What did you like most about the integration and API?

Any feature request or improvement you'd love to see?

Ready to go global?

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

Get Started