Jonny Borges
Committed by GitHub

Merge pull request #2040 from codercengiz/patch-1

Update internacionalization.dart Fixes #2039
@@ -69,13 +69,13 @@ extension Trans on String { @@ -69,13 +69,13 @@ extension Trans on String {
69 final translationsWithNoCountry = Get.translations 69 final translationsWithNoCountry = Get.translations
70 .map((key, value) => MapEntry(key.split("_").first, value)); 70 .map((key, value) => MapEntry(key.split("_").first, value));
71 final containsKey = 71 final containsKey =
72 - translationsWithNoCountry.containsKey(Get.locale!.languageCode); 72 + translationsWithNoCountry.containsKey(Get.locale!.languageCode.split("_").first);
73 73
74 if (!containsKey) { 74 if (!containsKey) {
75 return null; 75 return null;
76 } 76 }
77 77
78 - return translationsWithNoCountry[Get.locale!.languageCode]; 78 + return translationsWithNoCountry[Get.locale!.languageCode.split("_").first];
79 } 79 }
80 80
81 String get tr { 81 String get tr {