Example 1: Include translation tools

Include the localisation tools and use the defined languages and translations files.
Allows users to select their language and changes the gui language on the fly.
The translation chooser is automatically added to the navigation if possible.

VIEW-Requestor

<div id="translator_example1" swa="Translator FROM ../../../data/userinterface/translator/example1/translation_files.json"></div>
        
CONFIGURATION

There is no configuration needed.

DATASOURCE

The used translation_files.json defines the available translations. It contains one object for each translations. Each translation file is for one language and must contain the language code at the end of the file name.
The path is given as path from the app_root (this is configured in the configuration.js or automatically detected)

English translation file

German translation file