Introduction

circle-check

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? Herearrow-up-right you'll find a blog post on how to best use next-i18nextarrow-up-right with client side translation downloadarrow-up-right and SEO optimization.

Imagearrow-up-right Using Next.js with the new App Router? Then this articlearrow-up-right is what you are looking for!

Imagearrow-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.

Imagearrow-up-right

circle-info

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

Imagearrow-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 locize.comarrow-up-right.

circle-check

Learn more about the enterprise offeringarrow-up-right

Last updated