Info |
---|
Warning: not valid Valid as of Datafari 5.4 when using DatafariUI |
This page is meant to gather some tips for the development of the DatafariUI web app based on React.
...
Locales files are located in the files public/locales/{localeid}/translation.jsonwhere {localeid} is the name of any locale (it, fr, en, …). Files look like this:
...
Automatic extraction of keys from code files
Thanks to the babel-plugin-i18next-extractplugin, it is possible to automatically extract the translation keys from the code. To do so, run the following command from the root folder of the project:
...
To do so, there are a few steps to follow:
Modify the top bar component to add the String calling the translation function
Adding the translations to the French and German localization files
Compiling DatafariUI
Modifying the top bar component
...