fix: config file lint error (#250)
This commit is contained in:
@@ -23,11 +23,12 @@ export const getLocale = (request: NextRequest): Locale => {
|
||||
}
|
||||
|
||||
// match locale
|
||||
let matchedLocale:Locale = i18n.defaultLocale
|
||||
let matchedLocale: Locale = i18n.defaultLocale
|
||||
try {
|
||||
// If languages is ['*'], Error would happen in match function.
|
||||
matchedLocale = match(languages, locales, i18n.defaultLocale) as Locale
|
||||
} catch(e) {}
|
||||
}
|
||||
catch (e) {}
|
||||
return matchedLocale
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user