Skip to content

Commit

Permalink
Use default locale in 404.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed May 15, 2023
1 parent d2a7e9f commit ee6aa71
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/starlight/404.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import config from 'virtual:starlight/user-config';
// Built-in CSS styles.
import './style/props.css';
import './style/reset.css';
Expand All @@ -16,10 +18,7 @@ import ThemeProvider from './components/ThemeProvider.astro';
// Important that this is the last import so it can override built-in styles.
import 'virtual:starlight/user-css';
// TODO: replace with proper values — requires support for a “default” locale
const lang = 'en';
const dir = 'ltr';
const locale = undefined;
const { lang = 'en', dir = 'ltr', locale } = config.defaultLocale || {};
---

<html lang={lang} dir={dir}>
Expand Down

0 comments on commit ee6aa71

Please sign in to comment.