Single-language sites: Markdown route without the locale param; i18n docs corrected

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-16 13:32:31 +02:00
co-authored by Claude Opus 5.5
parent 67e8da6ec3
commit df0f5e03c3
9 changed files with 100 additions and 48 deletions
+3 -1
View File
@@ -106,7 +106,9 @@ export const i18nConfig = {
],
} as const satisfies I18nConfig
```
Strona jednojęzyczna: jeden locale, bez folderu `[locale]` (i18n.md).
Strona jednojęzyczna: jeden locale, bez folderu `[locale]` — layout z `i18nConfig.defaultLocale`,
`createPageRoute` / `createNotFoundPage` bez zmian, Markdown w `app/md/[[...slug]]/route.ts` (i18n.md).
Nie zakładaj `[locale]` „na zapas” przy jednym języku — linki byłyby bez `/pl`, strony z `/pl`.
### 2.3 payload.config.ts
```ts