Skip to content

Commit

Permalink
chore: fix ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Jan 27, 2024
1 parent 47b3bd4 commit de9c956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de9c956

Please sign in to comment.