localizeAllVersions function

Map<String?, String> localizeAllVersions(
  1. Object? key,
  2. Translations<dynamic, Map<StringLocale, StringTranslated>, Map<dynamic, StringTranslated>, dynamic> translations, {
  3. String? languageTag,
})

Use the localizeAllVersions method to return a Map of all translated strings, where modifiers are the keys. In special, the unversioned text is indexed with a null key.

If languageTag is not provided (it's null), the method will use the default language tag found in I18n.languageTag

Implementation

Map<String?, String> localizeAllVersions(
  Object? key,
  Translations translations, {
  String? languageTag,
}) =>
    core.localizeAllVersions(key, translations,
        locale: languageTag ?? I18n.languageTag);