Skip to content

Commit 8624f1d

Browse files
committed
Fix locale
1 parent 1b4752c commit 8624f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/locale.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function getAcceptLanguageLocale(requestHeaders: Headers, locales: Locales) {
1717
try {
1818
locale = match(languages, locales, defaultLocale)
1919
} catch (e) {
20-
// invalid language
20+
locale = defaultLocale
2121
}
2222
return locale
2323
}

0 commit comments

Comments
 (0)