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

menu needs to have the locale attribute in components/layout/NavBar.vue #10

Closed
barrytsai opened this issue Mar 6, 2019 · 1 comment · Fixed by #16
Closed

menu needs to have the locale attribute in components/layout/NavBar.vue #10

barrytsai opened this issue Mar 6, 2019 · 1 comment · Fixed by #16

Comments

@barrytsai
Copy link

the menu needs to have the locale attribute in components/layout/NavBar.vue
menu: {
product: { copy: this.$store.state.layoutCopy.menuProduct },
mission: { copy: this.$store.state.layoutCopy.menuMission },
about: { copy: this.$store.state.layoutCopy.menuAbout },
careers: { copy: this.$store.state.layoutCopy.menuCareers },
blog: { copy: this.$store.state.layoutCopy.menuBlog },
},

@barrytsai
Copy link
Author

actually maybe it's here...
store/index.js
export const actions = {
async nuxtServerInit ({ commit }, {req }) {
const copy = await client.getEntries({'content_type': 'layoutCopy'})
let copys = {}
for (let entry of copy.items)
copys[entry.fields.name] = entry.fields.copy
commit('layoutCopy', copys)
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant