Languages File Path is Relative #3083
Unanswered
ademyalcin27
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After upgrading the version of Nuxt and Nuxt i18n module, the language files started to be path relative. How can I restore this for all environments?
Expected:
window.NUXT={};window.NUXT.config={public:{i18n:{baseUrl:"",defaultLocale:"en",defaultDirection:"ltr",strategy:"no_prefix",lazy:true,rootRedirect:"",routesNameSeparator:"___",defaultLocaleRouteNameSuffix:"default",skipSettingLocaleOnNavigate:false,differentDomains:false,trailingSlash:false,configLocales:[{code:"de",files:["lang/de.json"]},{code:"en",files:["lang/en.json"]},{code:"es",files:["lang/es.json"]},{code:"fr",files:["lang/fr.json"]},{code:"it",files:["lang/it.json"]},{code:"nl",files:["lang/nl.json"]}],locales:{de:{domain:""},en:{domain:""},es:{domain:""},fr:{domain:""},it:{domain:""},nl:{domain:""}},detectBrowserLanguage:false,experimental:{localeDetector:"",switchLocalePathLinkSSR:false,autoImportTranslationFunctions:false},multiDomainLocales:false}},app:{baseURL:"/v2",buildId:"aebbe9c4-6013-4cd7-898b-11566ddd7387",buildAssetsDir:"/_nuxt/",cdnURL:""}}
Current
this /vcsroot/src/portal/v2/ relative path is changing in each env(local, stage, production)
window.NUXT={};window.NUXT.config={public:{i18n:{baseUrl:"",defaultLocale:"en",defaultDirection:"ltr",strategy:"no_prefix",lazy:true,rootRedirect:"",routesNameSeparator:"___",defaultLocaleRouteNameSuffix:"default",skipSettingLocaleOnNavigate:false,differentDomains:false,trailingSlash:false,configLocales:[{code:"de",files:["/vcsroot/src/portal/v2/lang/de.json"]},{code:"en",files:["/vcsroot/src/portal/v2/lang/en.json"]},{code:"es",files:["/vcsroot/src/portal/v2/lang/es.json"]},{code:"fr",files:["/vcsroot/src/portal/v2/lang/fr.json"]},{code:"it",files:["/vcsroot/src/portal/v2/lang/it.json"]},{code:"nl",files:["/vcsroot/src/portal/v2/lang/nl.json"]}],locales:{de:{domain:""},en:{domain:""},es:{domain:""},fr:{domain:""},it:{domain:""},nl:{domain:""}},detectBrowserLanguage:false,experimental:{localeDetector:"",switchLocalePathLinkSSR:false,autoImportTranslationFunctions:false},multiDomainLocales:false}},app:{baseURL:"/v2",buildId:"aebbe9c4-6013-4cd7-898b-11566ddd7387",buildAssetsDir:"/_nuxt/",cdnURL:""}}
Beta Was this translation helpful? Give feedback.
All reactions