react-i18next VS i18next-http-backend

Compare react-i18next vs i18next-http-backend and see what are their differences.

react-i18next

Internationalization for react done right. Using the i18next i18n ecosystem. (by i18next)

i18next-http-backend

i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno. (by i18next)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
react-i18next i18next-http-backend
71 6
8,959 416
1.0% 1.9%
8.8 7.5
13 days ago 18 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

react-i18next

Posts with mentions or reviews of react-i18next. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-29.
  • A brief history of web development. And why your framework doesn't matter
    4 projects | news.ycombinator.com | 29 Apr 2024
    > It’s important to be aware of what you are getting if you go with React, and what you are getting is a far cry from what a framework would offer, with all the corresponding pros and cons.

    Would you like to elaborate on that?

    In my experience, with something as great, size/ecosystem-wise as React, there will almost always be at least one "mainstream" package for whatever you might want to do with it, that integrates pretty well. Where a lot of things might come out of the box with a framework, with a library I often find myself just needing to install the "right" package, and from there it's pretty much the same.

    For example, using https://angular.io/guide/i18n-overview or installing and using https://react.i18next.com/

    Or something like https://angular.io/guide/form-validation out of the box, vs installing and using https://formik.org/

    Or perhaps https://angular.io/guide/router vs https://reactrouter.com/en/main

    Even adding something that's not there out of the box is pretty much the same, like https://primeng.org/ or https://primereact.org/

    React will typically have more fragmentation and therefore also choice, but I don't see those two experiences as that different. Updates and version management/supply chain will inevitably be more of a mess with the library, admittedly.

    Now, projects like Next https://nextjs.org/ exist and add what some might regard as the missing pieces and work well if you want something opinionated and with lots of features out of the box, but a lot of those features (like SSR) are actually pretty advanced and not always even necessary.

  • Pains and solutions in localization for the web
    3 projects | dev.to | 13 Dec 2023
    In a recent project I've been using react-i18next so I'll use its syntax for the examples, but pretty much every library works similarly.
  • 45 NPM Packages to Solve 16 React Problems
    22 projects | dev.to | 14 Nov 2023
    react-i18next
  • React Ecosystem in 2024
    22 projects | dev.to | 16 Oct 2023
    i18next - You can find documentation and resources for using i18next at react.i18next.com. i18next is a popular internationalization framework for JavaScript, including React. It provides a comprehensive solution for handling translations, formatting, and more.
  • Enforcing Localization through Types
    3 projects | dev.to | 20 Aug 2023
    So far, we’ve been using a utility createLocalizedString to create and use the LocalizedString type. This utility is only really practical in unit tests. For real applications, we’ll want to use a translation function from react-i18next or next-i18next to do the heavy lifting. Then we just wrap the translation functions that are provided in order to use our type:
  • 5 Not-So-Typical React Libraries for an Outstanding Project
    9 projects | dev.to | 3 Aug 2023
    Website: https://react.i18next.com/
  • Is it a good practice to centralized messages file
    1 project | /r/reactjs | 10 Jul 2023
    If you are talking about handling translations for your application, take a look at https://react.i18next.com/
  • Looking for a few iOS devs that are interested in getting their apps localized.
    2 projects | /r/swift | 28 Jun 2023
    I will be supporting Korean as a part of the beta. I have to look deeper into https://react.i18next.com/ in order to understand what it provides. My goal is for engineers to be able to click a single button and have localizations always up to date in their codebase, not delaying shipping a new version or having to even think about it.
  • Supercharge Your TypeScript App: Mastering i18next for Type-Safe Translations
    6 projects | dev.to | 22 Jun 2023
    With the new react-i18next version, when loading multiple namespaces, t function will infer and accept the keys for the first namespace. So this pattern is now accepted:
  • React Ecosystem in 2023.
    15 projects | dev.to | 17 Jun 2023
    react-i18next

i18next-http-backend

Posts with mentions or reviews of i18next-http-backend. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-22.
  • Supercharge Your TypeScript App: Mastering i18next for Type-Safe Translations
    6 projects | dev.to | 22 Jun 2023
    A React.js based i18next setup with in-memory translation resources could also look very similar to the above example, so let's raise the bar a little bit and see what a setup with lazy loading translations like with i18next-http-backend looks like:
  • Implement multi-language Support in React
    2 projects | dev.to | 10 May 2023
    The next package will load the values depending on the language returned by the language detector.
  • How to properly internationalize a Vue application using i18next
    8 projects | dev.to | 15 May 2022
    import i18next from 'i18next' import I18NextVue from 'i18next-vue' import LanguageDetector from 'i18next-browser-languagedetector' import Backend from 'i18next-http-backend' export const i18nextPromise = i18next // i18next-http-backend // loads translations from your server // https://github.com/i18next/i18next-http-backend .use(Backend) // detect user language // learn more: https://github.com/i18next/i18next-browser-languageDetector .use(LanguageDetector) // init i18next // for all options read: https://www.i18next.com/overview/configuration-options .init({ debug: true, fallbackLng: 'en' }); export default function (app) { app.use(I18NextVue, { i18next }) return app }
  • The progressive guide to jQuery internationalization (i18n) using i18next
    8 projects | dev.to | 2 Feb 2022
    // ... $(function () { // use plugins and options as needed, for options, detail see // https://www.i18next.com i18next // i18next-http-backend // loads translations from your server // https://github.com/i18next/i18next-http-backend .use(i18nextHttpBackend) // detect user language // learn more: https://github.com/i18next/i18next-browser-languageDetector .use(i18nextBrowserLanguageDetector) // init i18next // for all options read: https://www.i18next.com/overview/configuration-options .init({ debug: true, fallbackLng: 'en' }, (err, t) => { if (err) return console.error(err); // ... }); });
  • How to Internationalize a React App
    8 projects | dev.to | 2 Sep 2021
    In addition, we need to install i18next-http-backend which allows us to fetch translations from a directory, and i18next-browser-languagedetector which allows us to detect the user's language:
  • How to properly internationalize a React application using i18next
    12 projects | dev.to | 14 Apr 2021
    import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; import Backend from 'i18next-http-backend'; import { DateTime } from 'luxon'; i18n // i18next-http-backend // loads translations from your server // https://github.com/i18next/i18next-http-backend .use(Backend) // detect user language // learn more: https://github.com/i18next/i18next-browser-languageDetector .use(LanguageDetector) // pass the i18n instance to react-i18next. .use(initReactI18next) // init i18next // for all options read: https://www.i18next.com/overview/configuration-options .init({ debug: true, fallbackLng: 'en', interpolation: { escapeValue: false, // not needed for react as it escapes by default format: (value, format, lng) => { if (value instanceof Date) { return DateTime.fromJSDate(value).setLocale(lng).toLocaleString(DateTime[format]) } return value; } }, resources: { en: { translation: { description: { part1: 'Edit <1>src/App.js and save to reload.', part2: 'Learn React' }, counter: 'Changed language just once', counter_plural: 'Changed language already {{count}} times', footer: { date: 'Today is {{date, DATE_HUGE}}', date_morning: 'Good morning! Today is {{date, DATE_HUGE}} | Have a nice day!', date_afternoon: 'Good afternoon! It\'s {{date, DATE_HUGE}}', date_evening: 'Good evening! Today was the {{date, DATE_HUGE}}' } } }, de: { translation: { description: { part1: 'Ändere <1>src/App.js und speichere um neu zu laden.', part2: 'Lerne React' }, counter: 'Die Sprache wurde erst ein mal gewechselt', counter_plural: 'Die Sprache wurde {{count}} mal gewechselt', footer: { date: 'Heute ist {{date, DATE_HUGE}}', date_morning: 'Guten Morgen! Heute ist {{date, DATE_HUGE}} | Wünsche einen schönen Tag!', date_afternoon: 'Guten Tag! Es ist {{date, DATE_HUGE}}', date_evening: 'Guten Abend! Heute war {{date, DATE_HUGE}}' } } } } }); export default i18n;

What are some alternatives?

When comparing react-i18next and i18next-http-backend you can also consider the following projects:

React Intl - The monorepo home to all of the FormatJS related libraries, most notably react-intl.

i18next-browser-languageDetector - language detector used in browser environment for i18next

next-i18next - The easiest way to translate your NextJs apps.

i18next-locize-backend - A simple i18next backend for locize.com which can be used in Node.js, in the browser and for Deno.

jsLingui - 🌍 📖 A readable, automated, and optimized (3 kb) internationalization for JavaScript

Luxon - ⏱ A library for working with dates and times in JS

i18next - i18next: learn once - translate everywhere

jquery-i18next - jQuery-i18next is a jQuery based Javascript internationalization library on top of i18next. It helps you to easily internationalize your web applications.

nextjs-monorepo-example - Collection of monorepo tips & tricks

http - An isomorphic http client for Svelte applications

transloco - 🚀 😍 The internationalization (i18n) library for Angular