Skip to content

Commit

Permalink
fix: locale loadPath not a valid relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Dec 7, 2024
1 parent 2f96248 commit 98ab25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prepare/static-locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export async function prepareStaticLocales(ctx: I18nNuxtContext, nuxt: Nuxt) {
currentLocaleInfo.files.splice(start, end + 1, processedStaticFile)
currentLocaleInfo.meta!.splice(start, end + 1, {
path: staticFilePath,
loadPath: relative(nuxt.options.buildDir, staticFilePath),
loadPath: './' + relative(nuxt.options.buildDir, staticFilePath),
file: processedStaticFile,
hash: getHash(staticFilePath),
key: genSafeVariableName(`locale_${convertToImportId(relative(nuxt.options.buildDir, staticFilePath))}`),
Expand Down

0 comments on commit 98ab25e

Please sign in to comment.