diff options
author | Chris Swithinbank | 2023-05-15 21:45:58 +0200 |
---|---|---|
committer | Chris Swithinbank | 2023-05-15 21:45:58 +0200 |
commit | ee6aa71c0d5186b648edf5b0b68f512683879eab (patch) | |
tree | 16d13ed4ec2042c23f1419bba12d2910cedd404b | |
parent | d2a7e9fd0b382c1120eb97661ea7b1ee0030e5c7 (diff) | |
download | IT.starlight-ee6aa71c0d5186b648edf5b0b68f512683879eab.tar.gz IT.starlight-ee6aa71c0d5186b648edf5b0b68f512683879eab.tar.bz2 IT.starlight-ee6aa71c0d5186b648edf5b0b68f512683879eab.zip |
Use default locale in 404.astro
-rw-r--r-- | packages/starlight/404.astro | 7 |
1 files 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 || {}; --- <html lang={lang} dir={dir}> |