How does server side internationalization (i18n) look like?

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • next-i18next

    The easiest way to translate your NextJs apps.

  • When it comes to internationalization of Next.js apps one of the most popular choices is next-i18next. It is based on react-i18next and users of next-i18next by default simply need to include their translation content as JSON files and don't have to worry about much else.

  • Commander.js

    node.js command-line interfaces made easy

  • Let's start with something simple: a verry small CLI app. For this example let's use commander, originally created by TJ Holowaychuk. We are defining a sayhi command with optional language and name parameters that should respond with a salutation in the appropriate language.

  • 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 logo
  • pkg

    Discontinued Package your Node.js project into an executable

  • If you don't bundle your CLI app in a single executable, for example by using pkg, you can also i.e. use the i18next-fs-backend to dynamically load your translations, for example like this:

  • i18next-fs-backend

    i18next-fs-backend is a backend layer for i18next using in Node.js and for Deno to load translations from the filesystem.

  • If you don't bundle your CLI app in a single executable, for example by using pkg, you can also i.e. use the i18next-fs-backend to dynamically load your translations, for example like this:

  • i18next-http-middleware

    i18next-http-middleware is a middleware to be used with Node.js web frameworks like express or Fastify and also for Deno.

  • This time we will use a different i18next module, i18next-http-middleware. It can be used for all Node.js web frameworks, like express or Fastify, but also for Deno web frameworks, like abc or ServestJS.

  • abc

    A better Deno framework to create web application. (by zhmushan)

  • This time we will use a different i18next module, i18next-http-middleware. It can be used for all Node.js web frameworks, like express or Fastify, but also for Deno web frameworks, like abc or ServestJS.

  • servest

    🌾A progressive http server for Deno🌾

  • This time we will use a different i18next module, i18next-http-middleware. It can be used for all Node.js web frameworks, like express or Fastify, but also for Deno web frameworks, like abc or ServestJS.

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

    InfluxDB logo
  • locize-cli

    locize cli to import / export locales, add / edit / remove, sync segments

  • You can, for example, run an npm script script (or similar), which will use the cli to download the translations from locize into the appropriate folder next-i18next is looking in to (i.e. ./public/locales). This way the translations are bundled in your app and you will not generate any CDN downloads during runtime.

  • i18next-locize-backend

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

  • Alternatively, use i18next-locize-backend instead of the i18next-fs-backend. If you're running your code in a serverless environment, make sure you read this advice first!

  • aws-lambda-fastify

    Insipired by aws-serverless-express to work with Fastify with inject functionality.

  • This can be achieved with the help of aws-lambda-fastify. Just create a new lambda.js that imports your modified app.js file:

  • i18next-chained-backend

    An i18next backend to chain multiple backends (add fallbacks, caches, ...)

  • There is also the possibility to cache the translations locally thanks to i18next-chained-backend. Here you can find more information about this option.

  • i18next

    i18next: learn once - translate everywhere

  • fastify

    Fast and low overhead web framework, for Node.js

  • This time we will use a different i18next module, i18next-http-middleware. It can be used for all Node.js web frameworks, like express or Fastify, but also for Deno web frameworks, like abc or ServestJS.

  • react-i18next

    Internationalization for react done right. Using the i18next i18n ecosystem.

  • When it comes to internationalization of Next.js apps one of the most popular choices is next-i18next. It is based on react-i18next and users of next-i18next by default simply need to include their translation content as JSON files and don't have to worry about much else.

  • Jade

    Pug – robust, elegant, feature rich template engine for Node.js

  • In this example we will use pug (formerly known as "Jade", and also originally created by TJ Holowaychuk) to define some templates that should be filled with the data needed in the email, and mjml to actually design the email content.

  • Next.js

    The React Framework

  • Now it's time for Next.js...

  • MJML

    MJML: the only framework that makes responsive-email easy

  • In this example we will use pug (formerly known as "Jade", and also originally created by TJ Holowaychuk) to define some templates that should be filled with the data needed in the email, and mjml to actually design the email content.

  • Express

    Fast, unopinionated, minimalist web framework for node.

  • This time we will use a different i18next module, i18next-http-middleware. It can be used for all Node.js web frameworks, like express or Fastify, but also for Deno web frameworks, like abc or ServestJS.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts