Skip to content

Commit

Permalink
Fixed locale access crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Sep 17, 2023
1 parent 3bf1df6 commit 19daa6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import Fonts from '../basis/Fonts';
import {
locales,
locale,
DB,
animationFactor,
languages,
Expand All @@ -31,7 +30,7 @@
// Keep the page's language and direction up to date.
$: if (typeof document !== 'undefined') {
const language = $locale.language;
const language = $locales[0].language;
document.documentElement.setAttribute('lang', language);
document.documentElement.setAttribute(
'dir',
Expand Down

0 comments on commit 19daa6e

Please sign in to comment.