-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
when use array type module configuraion, i18n-t tag and pluralisation don't work on production build #2089
Comments
Same issue here, this is blocking deployment unfortunately. I am on exactly the same environment as @gbyesiltas |
simillar issue #1909 I found out reproduction pattern. This issue seems to occur when the module in nuxt.config.ts is configured as an array. import i18nConfig from './nuxt.i18n.config';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
// NOTE: not work
// modules: [['@nuxtjs/i18n', i18nConfig]],
// NOTE: work correctly
modules: ['@nuxtjs/i18n'],
i18n: i18nConfig
}); |
Yep, this fixes the issue indeed. Thanks! :) |
Environment
Darwin
v18.14.0
3.5.0
2.4.1
npm@8.19.3
vite
ssr
,components
,runtimeConfig
,modules
,app
,css
,postcss
,vite
nuxt-vitest@0.7.0
,@nuxt-alt/auth@2.5.0
,@pinia/nuxt@0.4.9
,nuxt-icon@0.4.0
,@vueuse/nuxt@9.13.0
,@formkit/nuxt@0.17.0
,@nuxtjs/i18n@8.0.0-beta.11
,@nuxt/image-edge@1.0.0-28020728.5df24eb
,@nuxtjs/robots@3.0.0
-
Reproduction
Here's a stackblitz reproduction with only this module as a dependency: https://stackblitz.com/edit/github-mqaaqa-zzgq5f?file=app.vue
Describe the bug
Translations that include pluralisations and translations via the
i18n-t
tag do not work when the application is built usingnpm run build
andnpm run preview
whereas they do work on the development build.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: