Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing <template> html files is not working. #77

Closed
Jule- opened this issue Mar 5, 2018 · 0 comments
Closed

Parsing <template> html files is not working. #77

Jule- opened this issue Mar 5, 2018 · 0 comments

Comments

@Jule-
Copy link
Contributor

Jule- commented Mar 5, 2018

Version

  • i18next: 9.1.0
  • i18next-scanner: 2.4.4

Html walk function is not working for people who wants to scan html like <template></template>.

const walk = (nodes) => {
nodes.forEach(node => {
if (node.attrs) {
node.attrs.forEach(attr => {
if (attrs.indexOf(attr.name) !== -1) {
const values = attr.value.split(';');
values.forEach(parseAttributeValue);
}
});
}
if (node.childNodes) {
walk(node.childNodes);
}
});
};

@Jule- Jule- mentioned this issue Mar 5, 2018
@cheton cheton closed this as completed in 4bc4483 Mar 5, 2018
cheton added a commit that referenced this issue Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant