From ee6aa71c0d5186b648edf5b0b68f512683879eab Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 15 May 2023 21:45:58 +0200 Subject: Use default locale in 404.astro --- packages/starlight/404.astro | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/starlight/404.astro b/packages/starlight/404.astro index eee55f8b..cdef0b31 100644 --- a/packages/starlight/404.astro +++ b/packages/starlight/404.astro @@ -1,4 +1,6 @@ --- +import config from 'virtual:starlight/user-config'; + // Built-in CSS styles. import './style/props.css'; import './style/reset.css'; @@ -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 || {}; --- -- cgit