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.

npx astro add astro-intl
Santo Domingo
Dominican Spanishes-DO

¡Qué lo que!

Countries where the language is official or spoken by a majority

One key, multiple languages

Open the message file and compare its value with the rendered page.

---
import { getTranslations } from 'astro-intl';

const t = getTranslations();
---

<h1>{t('welcome')}</h1>

Why Astro-intl?

Everything you need for internationalization

Translations during server rendering

Read the page’s locale in server-rendered components. Pass translated labels to interactive islands.

Type-Safe

Get autocomplete for translation keys from a typed catalog.

Dynamic Loading

Configure your message loader to import a catalog when its locale is requested.

Namespaces

Organize translations by categories for better maintainability

Rich Text Support

Use message tags for bold text and links. Each adapter renders them in the order set by the translation.

Simple API

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

Translate components in your Astro project

Use your Astro project’s translations in .astro, React, Preact, Svelte, Vue, and SolidJS components.

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