mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
32 lines
552 B
Markdown
32 lines
552 B
Markdown
|
---
|
||
|
'astro': patch
|
||
|
---
|
||
|
|
||
|
The configuration `i18n.routingStrategy` has been replaced with an object called `routing`.
|
||
|
|
||
|
```diff
|
||
|
export default defineConfig({
|
||
|
experimental: {
|
||
|
i18n: {
|
||
|
- routingStrategy: "prefix-always",
|
||
|
+ routing: {
|
||
|
+ prefixDefaultLocale: true,
|
||
|
+ }
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
```
|
||
|
|
||
|
```diff
|
||
|
export default defineConfig({
|
||
|
experimental: {
|
||
|
i18n: {
|
||
|
- routingStrategy: "prefix-other-locales",
|
||
|
+ routing: {
|
||
|
+ prefixDefaultLocale: false,
|
||
|
+ }
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
```
|