translateBlock method
FutureOr<Map<String, String> ?>
translateBlock(
- Map<
String, String> entries, - IntlLocale fromLocale,
- IntlLocale toLocale,
- String fromLanguage,
- String toLanguage,
- bool confirm,
override
Translates an entries block. Called by translate.
Implementation
@override
FutureOr<Map<String, String>?> translateBlock(
Map<String, String> entries,
IntlLocale fromLocale,
IntlLocale toLocale,
String fromLanguage,
String toLanguage,
bool confirm) {
var translation = entries.map((key, msg) =>
MapEntry(key, translateEntry(fromLocale, toLocale, key, msg)));
return translation;
}