diff --git a/lib/src/translations.dart b/lib/src/translations.dart index 6dd89b59..c3672db3 100644 --- a/lib/src/translations.dart +++ b/lib/src/translations.dart @@ -35,6 +35,7 @@ class Translations { /// If we found the value, cache it. If the value is null then /// we're not going to cache it, and returning null instead. if (value != null) { + if(value.runtimeType != String) throw Exception('The requested key has more nested keys.'); cacheNestedKey(key, value); }