getLocalizedValue method

  1. @override
DictionaryValue getLocalizedValue(
  1. PassFile pass,
  2. Locale? locale
)
override

Localized value based on given locale and pass.

Implementation

@override

/// Localized value based on given [locale] and [pass].
DictionaryValue getLocalizedValue(PassFile pass, Locale? locale) {
  final localizations = pass.getLocalizations(locale);
  return StringDictionaryValue(localizations?[string] ?? string);
}