Showing
1 changed file
with
1 additions
and
1 deletions
@@ -281,7 +281,7 @@ extension Trans on String { | @@ -281,7 +281,7 @@ extension Trans on String { | ||
281 | Get.translations[Get.locale.languageCode].containsKey(this)) { | 281 | Get.translations[Get.locale.languageCode].containsKey(this)) { |
282 | return Get.translations[Get.locale.languageCode][this]; | 282 | return Get.translations[Get.locale.languageCode][this]; |
283 | // If there is no corresponding language or corresponding key, return the key. | 283 | // If there is no corresponding language or corresponding key, return the key. |
284 | - } else if (Get.translations.containsKey( | 284 | + } else if (Get.fallbackLocale != null && Get.translations.containsKey( |
285 | "${Get.fallbackLocale.languageCode}_${Get.fallbackLocale.countryCode}") && | 285 | "${Get.fallbackLocale.languageCode}_${Get.fallbackLocale.countryCode}") && |
286 | Get.translations[ | 286 | Get.translations[ |
287 | "${Get.fallbackLocale.languageCode}_${Get.fallbackLocale.countryCode}"] | 287 | "${Get.fallbackLocale.languageCode}_${Get.fallbackLocale.countryCode}"] |
-
Please register or login to post a comment