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

fix #82 #95

Conversation

achretien
Copy link

In nuxt 1.4.0, the method used during static generation test if children exist but not if children is empty.

By overwriting the children value to [] we automatically filter out the routes

see: https://github.com/nuxt/nuxt.js/blob/85b584693cd1e689406ad722b47735fa7d0faf26/lib/common/utils.js#L193

In nuxt 1.4.0, the method used during static generation test if children exist but not if children is empty.

By overwriting the children value to [] we automatically filter out the routes

see: https://github.com/nuxt/nuxt.js/blob/85b584693cd1e689406ad722b47735fa7d0faf26/lib/common/utils.js#L193
@achretien achretien changed the title fix https://github.com/nuxt-community/nuxt-i18n/issues/82 fix #82 Jun 6, 2018
@paulgv
Copy link
Collaborator

paulgv commented Jun 6, 2018

Thanks @achretien !

@paulgv paulgv merged commit ff127a5 into nuxt-modules:master Jun 6, 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

Successfully merging this pull request may close these issues.

2 participants