Skip to content

Commit c326b7f

Browse files
Clarify routing logic config instruction (withastro#13879)
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
1 parent aa45797 commit c326b7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/docs/en/guides/internationalization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can also choose to [add your own i18n logic in addition to or instead of Ast
2424

2525
## Configure i18n routing
2626

27-
Both a list of all supported languages ([`locales`](/en/reference/configuration-reference/#i18nlocales)) and a default language ([`defaultLocale`](/en/reference/configuration-reference/#i18ndefaultlocale)), which must be one of the languages listed in `locales`, need to be specified in an `i18n` configuration object. Additionally, you can configure more specific routing and fallback behavior to match your desired URLs.
27+
In your `i18n` configuration, specify the list of all supported languages ​​([`locales`](/en/reference/configuration-reference/#i18nlocales)) and set one of them as the default language ([`defaultLocale`](/en/reference/configuration-reference/#i18ndefaultlocale)). You can also configure more specific routing and fallback behavior to match your desired URLs.
2828

2929
```js title="astro.config.mjs"
3030
import { defineConfig } from "astro/config"

0 commit comments

Comments
 (0)