Home

Issue: 88

Access to the request in default.vue file

[issue link]

Hi!

I’m currently working on a project with Nuxt as an Express Middleware with i18next support.
My problem is that I need to access the user browser language, I suppose via the req object SSR.

There is a way to access the request in the layouts/default.vue ? Or in a plugin/customPlugin.js file ? I know that we can access req object in pages vue files but no in layouts templates.

If you have any idea, you’re welcome 😃

Thanks 👍

This question is available on Nuxt.js community (#c70)