getLocalisedLabel method

String getLocalisedLabel(
  1. AppModel appModel
)

Get the best localisation for the label of this enhancement. If there is no localisation, the fallback is label.

Implementation

String getLocalisedLabel(AppModel appModel) {
  return labelLocalisation[appModel.appLocale.toLanguageTag()] ?? label;
}