chore: fix ui tests
This commit is contained in:
parent
47b3bd485a
commit
de9c956731
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ export const LOCALES = {
|
|||
|
||||
export const DEFAULT_LOCALE = "en";
|
||||
const htmlLang = document.querySelector("html").getAttribute("lang");
|
||||
const DEFAULT_BROWSER_LOCALE = htmlLang.length == 2 ? htmlLang : DEFAULT_LOCALE;
|
||||
const DEFAULT_BROWSER_LOCALE = htmlLang?.length == 2 ? htmlLang : DEFAULT_LOCALE;
|
||||
|
||||
export function getLocalePreference() {
|
||||
return settings.locale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue