Files
noodl-docs/library/modules/i18next/README.md
Eric Tuvesson 53f0d6320e Initial commit
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: Michael Cartner <32543275+michaelcartner@users.noreply.github.com>
2023-09-05 12:08:55 +02:00

665 B

title, hide_title
title hide_title
i18next Module true

i18next Module

Module for using i18next in Noodl. The module has three nodes, i18next, Language Bundle and Translation.

  • i18next node is used to keep track of current language and to change the language
  • Language Bundle holds the resources (i.e. localized texts) for a specific language
  • Translation retrieves the correct translation for a specific string (identified by a key) from the currently selected language. If the current language changes, all strings are updated accordingly.

An example with the most common cases can be found here.