Skip to content

Commit

Permalink
fix false ns type error (i18next#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgwanlee authored Oct 12, 2021
1 parent 2764f4e commit 6a6bf79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 599,7 @@ class Parser {
}

if (Object.prototype.hasOwnProperty.call(attr, 'ns')) {
if (typeof options.ns !== 'string') {
if (typeof attr.ns !== 'string') {
this.log(`The ns attribute must be a string, saw ${chalk.yellow(attr.ns)}`);
}

Expand Down

0 comments on commit 6a6bf79

Please sign in to comment.