style:format i18n request file
This commit is contained in:
parent
8c70067a84
commit
9ca3e289b3
1 changed files with 1 additions and 4 deletions
|
|
@ -8,10 +8,7 @@ export default getRequestConfig(async () => {
|
|||
const browserLocale = acceptLanguage?.split(",")[0]?.split("-")[0];
|
||||
|
||||
const supportedLocales = ["en", "pl"];
|
||||
const locale =
|
||||
browserLocale && supportedLocales.includes(browserLocale)
|
||||
? browserLocale
|
||||
: "en";
|
||||
const locale = browserLocale && supportedLocales.includes(browserLocale) ? browserLocale : "en";
|
||||
|
||||
return {
|
||||
locale,
|
||||
|
|
|
|||
Loading…
Reference in a new issue