getLocalisedSourceName method

String getLocalisedSourceName(
  1. AppModel appModel
)

Get the best localisation for the label of this media source. If there is no localisation, the fallback is sourceName.

Implementation

String getLocalisedSourceName(AppModel appModel) {
  return sourceNameLocalisatiton[appModel.appLocale.toLanguageTag()] ??
      sourceName;
}