githubEdit

Introduction

circle-check
circle-info

๐ŸŽ‰ Announcing i18next-cliarrow-up-right: The New Official Toolkit for i18next. โ‡’ Learn Morearrow-up-right

What is react-i18next?

react-i18next is a powerful internationalization framework for Reactarrow-up-right / React Nativearrow-up-right which is based on i18nextarrow-up-right. Check out the history of i18nextarrow-up-right and when react-i18next was introducedarrow-up-right.

circle-info

You should read the i18nextarrow-up-right documentation. The configuration optionsarrow-up-right and translation functionalities like pluralsarrow-up-right, formattingarrow-up-right, interpolationarrow-up-right, ... are documented there.

The module provides multiple components eg. to assert that needed translations get loaded or that your content gets rendered when the language changes.

circle-exclamation

Official CLI

โญ i18next-cliarrow-up-right

The official, high-performance, all-in-one command-line tool for i18next. It handles key extraction, code linting, locale syncing, and type generation. It's built with modern technologies for maximum speed and accuracy. This is the recommended tool for all i18next projects.

As react-i18next depends on i18nextarrow-up-right you can use it in any other UI framework and on the server-side (node.js, .net, ...) too. Like the React philosophy - just:

Learn once - translate everywhere.

circle-check
circle-check
circle-info

Using Next.js? Since next-i18next v16arrow-up-right, both App Router and Pages Router are supported in a single package โ€” no boilerplate needed. Herearrow-up-right you'll find a blog post on how to best use next-i18nextarrow-up-right with client side translation download and SEO optimization.

arrow-up-right

circle-info

Using Remix? Herearrow-up-right you'll find a simple example and here a step by step tutorialarrow-up-right on how to best use remix-i18next.

arrow-up-right

circle-info

Using Gatsby? Herearrow-up-right you can find an example and an appropriate blog postarrow-up-right.

arrow-up-right

What does my code look like

Before: Your React code would have looked something like:

After: With the Trans component just change it to:

If you prefer not using semantic keys but text - that's also possiblearrow-up-right.

i18next supports translation management tools such as Locizearrow-up-right.

circle-check

Learn more about the enterprise offeringarrow-up-right

Manage your i18next translations directly from Claude and other AI assistants via the Locize MCP serverarrow-up-right

Last updated