-
I'm using nuxtI18n with callback.vue: <template>
<div class="container m-t-24 flex items-center justify-center">
Logging in...
</div>
</template>
<script>
export default {
nuxtI18n: false,
};
</script>
<style scoped>
.container {
min-height: 70vh;
}
</style> i18n config: i18n: {
locales: ['en', 'fr'],
defaultLocale: 'en',
strategy: 'prefix',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root',
alwaysRedirect: true,
cookieSecure: true,
cookieDomain: null,
},
vueI18n: {
fallbackLocale: 'en',
messages: {
en: {
welcome: 'Welcome',
},
fr: {
welcome: 'Bienvenue',
},
es: {
welcome: 'Bienvenido',
},
},
},
}, How can make these two libs work together? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It works here, no prefixes are added with This relies on But maybe a better option would be to create that route as a server middleware? Unless you need the user to interact with that callback page... |
Beta Was this translation helpful? Give feedback.
It works here, no prefixes are added with
nuxtI18n: false
.This relies on
parsePages
module option being enabled but it's enabled by default and I don't see that you've overridden it.But maybe a better option would be to create that route as a server middleware? Unless you need the user to interact with that callback page...