appendTranslations method

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

Appends translations.

Implementation

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