First setup help

Let's try to figure out what you need.

For which environment are you looking for an i18n solution?

Client, server, browser, React, mobile, desktop, Node.js, Deno...

There are a lot of appropriate libraries. Have a look at this list.

Special handling for serverless environments (AWS lambda, Google Cloud Functions, Azure Functions, etc...)

Make use of i18next-fs-backend

import i18next from 'i18next';
import Backend from 'i18next-fs-backend';

const backend = new Backend({
  // path where resources get loaded from
  loadPath: '/locales/{{lng}}/{{ns}}.json'

    // initImmediate: false, // setting initImediate to false, will load the resources synchronously
  }); // yourOptions should not include backendOptions!

or just import/require your files directly

import i18next from 'i18next';
import en from './locales/en.json'
import de from './locales/de.json'

    resources: {

Do you need a language detector for your environment?

Do you want to bundle the translations with your app?

Do you want to load the translations separate from your app via http?

Do you want to manage your translations with an awesome translation management system?

Last updated