diff --git a/node_modules/localized-strings/lib/LocalizedStrings.js b/node_modules/localized-strings/lib/LocalizedStrings.js index eefa6c8..e0a3cae 100644 --- a/node_modules/localized-strings/lib/LocalizedStrings.js +++ b/node_modules/localized-strings/lib/LocalizedStrings.js @@ -192,8 +192,8 @@ var LocalizedStrings = function () { if (_this4._opts.logsEnabled) { console.log("\uD83D\uDEA7 \uD83D\uDC77 key '" + key + "' not found in localizedStrings for language " + _this4._language + " \uD83D\uDEA7"); } - } else if (typeof strings[key] !== "string") { - // It's an object + } else if (typeof strings[key] !== "string" && defaultStrings[key].$$typeof === undefined) { + // It's an object (and it's not a React component) _this4._fallbackValues(defaultStrings[key], strings[key]); } });