Skip to content

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.

Languages

  • 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;
      }
      

[WIP]

Clone this wiki locally