astro-i18next

astro-i18next integrates i18next with Astro and includes utility components for translating Astro websites.

github.com/yassinedoghri/astro-i18next
astro-i18next homepage screenshot

About astro-i18next

astro-i18next integrates i18next with Astro for translating Astro websites. It supports translation with i18next's t function and a Trans component, plus utility components and functions for routes and language handling.

By default it expects translation files in the project's public folder under locales, such as public/locales/en/translation.json, and loads them server-side and client-side. The project is in beta, and breaking changes may still occur before v1.0.0.

Key features

  • Integrates i18next with Astro through astro.config and locale config
  • Translates content with i18next t function and Trans component
  • Includes LanguageSelector utility component
  • Includes HeadHrefLangs component for page head section
  • Provides localizePath, localizeUrl and interpolate utility functions
  • Supports namespaces for multiple translation files per locale
Best for: Developers building Astro websites that need content in more than one language.
Good for
  • Loads translations both server-side and client-side
  • Accepts JavaScript and TypeScript config file formats
  • Includes examples for SSG, SSR and React setups
Watch out for
  • In beta, with possible breaking changes before v1.0.0

astro-i18next at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

astro-i18next alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in SEO & Web Analytics

Well-known listings from the same topic.

All 211

astro-i18next FAQ

How do I install astro-i18next?
Run npm install astro-i18next, pnpm add astro-i18next, or yarn add astro-i18next.
Where are translation files stored by default?
In public/locales, with one folder per locale containing translation.json, such as public/locales/en/translation.json.
What file types can the astro-i18next config use?
JavaScript (.js, .mjs, .cjs) or TypeScript (.ts, .mts, .cts) files.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing