Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/cli/assets/routes/locale-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export async function loader({params, context}: LoaderFunctionArgs) {
params.locale &&
params.locale.toLowerCase() !== `${language}-${country}`.toLowerCase()
) {
// If the locale URL param is defined, yet we still are still at the default locale
// then the the locale param must be invalid, send to the 404 page
// If the locale URL param is defined, yet we are still at the default locale
// then the locale param must be invalid, send to the 404 page
throw new Response(null, {status: 404});
}

Expand Down
Loading