getLocalisedDescription method

String getLocalisedDescription(
  1. AppModel appModel
)

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

Implementation

String getLocalisedDescription(AppModel appModel) {
  return descriptionLocalisation[appModel.appLocale.toLanguageTag()] ??
      description;
}