Skip to content

Ui Configuration

Chiara Di Pietro edited this page Dec 4, 2021 · 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;
      }
  • enableNavBar: boolean. Select if you want to activate (true) or not (false) the navigation bar at the bottom of the screen.
  • initNavBarOpened: boolean. If the navigation bar is active (see previous setting), sets its initial status: with true it will be shown when the edition is loaded, with false it will be hidden until the user decides to show it.
  • thumbnailsButton: boolean. Select if you want to activate (true) or not (false) the thumbnail button in the navigation bar.
  • viscollButton: boolean. Select if you want to activate (true) or not (false) the VisColl button in the navigation bar. (Note that VisColl functionality is still a work in progress)

[WIP]

Clone this wiki locally