appendTranslations static method

void appendTranslations(
  1. Map<Locale, Map<String, String>> tr
)

Add additional Translations Overwrite existing Translation

Implementation

static void appendTranslations(Map<Locale, Map<String, String>> tr) {
  tr.forEach((key, map) {
    if (_translations.containsKey(key)) {
      _translations[key]!.addAll(map);
    } else {
      _translations[key] = map;
    }
  });
}