getLocalisedLabel method
- AppModel appModel
Get the best localisation for the label of this action. If there is no localisation, the fallback is label.
Implementation
String getLocalisedLabel(AppModel appModel) {
return labelLocalisation[appModel.appLocale.toLanguageTag()] ?? label;
}