-
Notifications
You must be signed in to change notification settings - Fork 19
Ui Configuration
Chiara Di Pietro edited this page Apr 5, 2020
·
12 revisions
Ui Configuration (ui_config.json
) allows to set the configuration closely related to the UI, such as the default language, the default/available theme(s), etc.
-
localization: boolean
. Decide whether to have localization buttons to allow language change at runtime. -
defaultLocalization: 'it' | 'en'
. Decide which language should be used as the default. -
availableLanguages: Language[]
. Customize the languages you want to set as available for the translation of the User Interface (just the UI!) by adding their codes in this list. At the moment we support just English ('en') and Italian ('it'). If you want to add the support for a new language, just add a new new_language_code.json inside the i18n directory and a new_language_code.png image inside the images folder.- Each language in the configuration should be defined as follows:
{ code: 'it' | 'en'; label: string; enabled: boolean; }
- Each language in the configuration should be defined as follows:
[WIP]
User feedback is very much appreciated: please send all comments, suggestions, bug reports, etc. to [email protected]. See other details of our project in our web site http://evt.labcd.unipi.it/.