getLocalizedChangeMessage method

String? getLocalizedChangeMessage(
  1. PassFile pass,
  2. Locale? locale
)

Localized version of changeMessage based on given locale and pass.

Implementation

String? getLocalizedChangeMessage(PassFile pass, Locale? locale) {
  final localizations = pass.getLocalizations(locale);
  return localizations?[changeMessage] ?? changeMessage;
}