Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jun 26, 2023
1 parent 6121567 commit 7d858e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/app-dir-i18n-routing/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function getLocale(request: NextRequest): string | undefined {
// Negotiator expects plain object so we need to transform headers
const negotiatorHeaders: Record<string, string> = {}
request.headers.forEach((value, key) => (negotiatorHeaders[key] = value))

// @ts-ignore locales are readonly
const locales: string[] = i18n.locales

Expand All @@ -19,7 +19,7 @@ function getLocale(request: NextRequest): string | undefined {
locales
)

const locale = matchLocale(languages, locales, i18n.defaultLocale);
const locale = matchLocale(languages, locales, i18n.defaultLocale)

return locale
}
Expand Down

0 comments on commit 7d858e1

Please sign in to comment.