Showing
1 changed file
with
10 additions
and
0 deletions
@@ -655,6 +655,16 @@ class GetImpl implements GetService { | @@ -655,6 +655,16 @@ class GetImpl implements GetService { | ||
655 | translations.addAll(tr); | 655 | translations.addAll(tr); |
656 | } | 656 | } |
657 | 657 | ||
658 | + void appendTranslations(Map<String, Map<String, String>> tr) { | ||
659 | + tr.forEach((key, map) { | ||
660 | + if (Get.translations.containsKey(key)) { | ||
661 | + Get.translations[key].addAll(map); | ||
662 | + } else { | ||
663 | + Get.translations[key] = map; | ||
664 | + } | ||
665 | + }); | ||
666 | + } | ||
667 | + | ||
658 | void changeTheme(ThemeData theme) { | 668 | void changeTheme(ThemeData theme) { |
659 | getxController.setTheme(theme); | 669 | getxController.setTheme(theme); |
660 | } | 670 | } |
-
Please register or login to post a comment