code: public static void initLocalization(final UI ui, final Localization localizationProperties,
              final VaadinMessageSource i18n) {
          ui.setLocale(HawkbitCommonUtil.getLocaleToBeUsed(localizationProperties, ui.getSession().getLocale()));
          ui.getReconnectDialogConfiguration()
                  .setDialogText(i18n.getMessage(UIMessageIdProvider.VAADIN_SYSTEM_TRYINGRECONNECT));
      }
docs: Set localization considering properties and UI settings.
  
  @param ui
  UI to setup
  @param localizationProperties
  UI localization settings
  @param i18n
  Localization message source