diff options
author | Sarah Rainsberger | 2023-05-24 08:56:18 -0300 |
---|---|---|
committer | GitHub | 2023-05-24 08:56:18 -0300 |
commit | a1c480f76519834758ea5662163c31b9cb0f8e18 (patch) | |
tree | a198106c47f3e240c4ba0dbd084942d463c40616 | |
parent | c86c1d6e93d978d13e42bbc449e0225a06793ba3 (diff) | |
parent | b8ab988ed5b3bca4c54e8973d4174ef9cd531bbc (diff) | |
download | IT.starlight-a1c480f76519834758ea5662163c31b9cb0f8e18.tar.gz IT.starlight-a1c480f76519834758ea5662163c31b9cb0f8e18.tar.bz2 IT.starlight-a1c480f76519834758ea5662163c31b9cb0f8e18.zip |
Merge pull request #83 from withastro/sarah11918-root
-rw-r--r-- | docs/src/content/docs/guides/i18n.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/src/content/docs/guides/i18n.md b/docs/src/content/docs/guides/i18n.md index 778bd6bc..55093723 100644 --- a/docs/src/content/docs/guides/i18n.md +++ b/docs/src/content/docs/guides/i18n.md @@ -59,7 +59,7 @@ Starlight provides built-in support for multilingual sites, including routing, f You can use a βrootβ locale to serve a language without any i18n prefix in its path. For example, if English is your root locale, an English page path might look like `/about` instead of `/en/about`. -To set a root locale, use the `root` key in your `locales` config: +To set a root locale, use the `root` key in your `locales` config. If the root locale is also the default locale for your content, remove `defaultLocale` or set it to `'root'`. ```js // astro.config.mjs @@ -70,6 +70,7 @@ export default defineConfig({ integrations: [ starlight({ title: 'My Docs', + defaultLocale: 'root', // optional locales: { root: { label: 'English', |