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.
1 parent 1defb35 commit 323862fCopy full SHA for 323862f
lib/locale.ts
@@ -24,7 +24,7 @@ export function getCanonicalLocale(): string {
24
* Returns the user's language
25
*/
26
export function getLanguage(): string {
27
- return document.documentElement.lang || environmentLocale
+ return document.documentElement.lang || navigator.language || navigator.userLanguage
28
}
29
30
/**
0 commit comments