diff --git a/src/translate.parser.ts b/src/translate.parser.ts index fbae1a23..040d5729 100644 --- a/src/translate.parser.ts +++ b/src/translate.parser.ts @@ -32,7 +32,7 @@ export class Parser { key = ''; do { key += keys.shift(); - if (target[key] !== undefined && (typeof target[key] === 'object' || !keys.length)) { + if (target!==undefined && target[key] !== undefined && (typeof target[key] === 'object' || !keys.length)) { target = target[key]; key = ''; } else if (!keys.length) {