Skip to content

Commit

Permalink
chore: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Nov 21, 2023
1 parent a749caa commit 4d7f6ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/render/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function computeCurrentLocale(
}
}
}
if (routingStrategy === 'prefix-other-locales') {
if (routingStrategy === 'prefix-other-locales' || routingStrategy === 'domain') {
return defaultLocale;
}
return undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---
export function getStaticPaths() {
return [
{ id: "lorem" }
{ params: {id: "lorem"}}
]
}
const currentLocale = Astro.currentLocale;
Expand Down

0 comments on commit 4d7f6ed

Please sign in to comment.