File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,11 @@ export default defineNitroPlugin(async nitro => {
146146 const options = await setupVueI18nOptions ( getDefaultLocaleForDomain ( getHost ( event ) ) || _defaultLocale )
147147 const url = getRequestURL ( event )
148148 const ctx = createI18nContext ( )
149+
150+ const localeConfigs = createLocaleConfigs ( options . fallbackLocale )
151+ ctx . vueI18nOptions = options
152+ ctx . localeConfigs = localeConfigs
153+
149154 event . context . nuxtI18n = ctx
150155
151156 if ( __I18N_SERVER_REDIRECT__ ) {
@@ -171,10 +176,6 @@ export default defineNitroPlugin(async nitro => {
171176 return
172177 }
173178 }
174-
175- const localeConfigs = createLocaleConfigs ( options . fallbackLocale )
176- ctx . vueI18nOptions = options
177- ctx . localeConfigs = localeConfigs
178179 } )
179180
180181 nitro . hooks . hook ( 'render:html' , ( htmlContext , { event } ) => {
You can’t perform that action at this time.
0 commit comments