getLocalizedDescription method
Localized version of description based on given locale
and pass
.
Implementation
String getLocalizedDescription(PassFile pass, Locale? locale) {
final localizations = pass.getLocalizations(locale);
return localizations?[description] ?? description;
}