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
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Scout APM - Truly a developer’s best friend
  • talent.io - Download talent.io’s Tech Salary Report
  • SonarQube - Static code analysis for 29 languages.
  • 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.

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • pkg

    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

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

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

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

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