addAllTranslations method

void addAllTranslations(
  1. Map<IntlLocale, Map<IntlLocale, Map<String, Map<String, String>>>> translations
)

Adds all translations in translations Map. See addTranslations;

Implementation

void addAllTranslations(
    Map<IntlLocale, Map<IntlLocale, Map<String, Map<String, String>>>>
        translations) {
  for (var fromEntry in translations.entries) {
    final fromLocale = fromEntry.key;

    for (var toEntry in fromEntry.value.entries) {
      final toLocale = toEntry.key;

      addTranslations(fromLocale, toLocale, toEntry.value);
    }
  }
}