private void addI18nListener() {
    model.translationServiceProperty().addListener((observable, oldValue, newValue) -> {
      if (oldValue != newValue) {
        form.i18n(newValue);
        newValue.addListener(categoryModel::updateGroupDescriptions);
        if (!Objects.equals(breadCrumbPresenter, null)) {
          newValue.addListener(breadCrumbPresenter::setupBreadCrumbBar);
        }
        categoryModel.updateGroupDescriptions();
      }
    });
  }
private void addI18nListener ( ) { model . translationServiceProperty ( ) . addListener ( ( observable , oldValue , newValue ) -> { if ( oldValue != newValue ) { form . i18n ( newValue ) ; newValue . addListener ( categoryModel :: updateGroupDescriptions ) ; if ( ! Objects . equals ( breadCrumbPresenter , null ) ) { newValue . addListener ( breadCrumbPresenter :: setupBreadCrumbBar ) ; } categoryModel . updateGroupDescriptions ( ) ; } } ) ; }
Updates the internal FormsFX form with the most current TranslationService.
Makes sure the group descriptions are updated with changing locale.