I am utilizing nuxt-i18n and @nuxtjs/auth in my project. I am looking to configure the auth.redirect option to support i18n as shown below:
// nuxt.config.js
export default {
modules: [
'@nuxtjs/auth',
'nuxt-i18n',
// ...
],
auth: {
redirect: {
home: localePath('/dashboard'),
// ...
},
},
// ...
};
Usually, similar to this.$store, I can access the `localePath` function provided by nuxt-i18n through the app instance or the context like this.$localePath or app.localePath. But how can I use it inside the nuxt.config.js file?