mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-11 14:52:54 +01:00
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>
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.