mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-12 07:12:53 +01:00
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>
This commit is contained in:
14
library/modules/i18next/README.md
Normal file
14
library/modules/i18next/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: i18next Module
|
||||
hide_title: true
|
||||
---
|
||||
# i18next Module
|
||||
|
||||
Module for using [i18next](https://www.i18next.com) 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](/library/examples/localization).
|
||||
Reference in New Issue
Block a user