We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pnpm dedupe
1 parent 2b29c99 commit ffefcddCopy full SHA for ffefcdd
apps/staking/src/components/Root/i18n-provider.tsx
@@ -15,14 +15,14 @@ export const I18nProvider = (
15
() =>
16
isSSR
17
? DEFAULT_LOCALE
18
- : window.navigator.languages.find((locale) => {
+ : (window.navigator.languages.find((locale) => {
19
const language = parse(locale).language;
20
return (
21
language !== undefined &&
22
language !== null &&
23
SUPPORTED_LANGUAGES.has(language)
24
);
25
- }) ?? DEFAULT_LOCALE,
+ }) ?? DEFAULT_LOCALE),
26
[isSSR],
27
28
0 commit comments