Files
noodl-docs/library/modules/i18next
Eric Tuvesson 656e5fc8d2 chore: Upgrade Docusaurus from v2 to v3 (#52)
* chore: Upgrade Docusaurus from v2 to v3

* chore: Update "Test build" GH workflow

* fix: build

All markdown is processed as MDX

* fix: Broken links
2024-01-12 16:53:22 +01:00
..
2023-09-05 12:08:55 +02:00

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.