mapTranslations method
Returns a new LocalizedString after applying the transform
function to each translation.
Implementation
LocalizedString mapTranslations(
Translation Function(String?, Translation) transform) =>
copy(
translations: translations.map((language, translation) =>
MapEntry(language, transform(language, translation))));