File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ export function translate<
378378
379379 // resolve message format
380380 // eslint-disable-next-line prefer-const
381- let [ format , targetLocale , message ] : [
381+ let [ formatScope , targetLocale , message ] : [
382382 PathValue | MessageFunction < Message > ,
383383 Locale | undefined ,
384384 LocaleMessageValue < Message >
@@ -396,6 +396,12 @@ export function translate<
396396 locale ,
397397 ( messages as unknown as LocaleMessages < Message > ) [ locale ] || { }
398398 ]
399+ // NOTE:
400+ // Fix to work around `ssrTransfrom` bug in Vite.
401+ // https://github.com/vitejs/vite/issues/4306
402+ // To get around this, use temporary variables.
403+ // https://github.com/nuxt/framework/issues/1461#issuecomment-954606243
404+ let format = formatScope
399405
400406 // if you use default message, set it as message format!
401407 let cacheBaseKey = key
You can’t perform that action at this time.
0 commit comments