Docs: admin languages and texts, wording rule for agents, new screen names

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-27 15:46:25 +01:00
co-authored by Claude Opus 5.5
parent 6b46bc0c14
commit 0a2374db18
45 changed files with 443 additions and 360 deletions
+3 -3
View File
@@ -64,7 +64,7 @@ A downloadable file is a `file` type link — **not** a separate `pdfUrl` field.
Page, category, product — one field: `buildLinkField({ relationTo: ['pages', 'categories', 'products'] })`
(a polymorphic relation; one collection = as before). A collection entry with `content` resolves to
`/{locale}/{archive-page}/{entry}` — `resolveLink` / `resolveNav` / `getLinkOptions` from `lib/content`
take the archives from Site Settings themselves (`archives: { categories: 'kategorie' }`). Without lib/content:
take the archives from Site settings themselves (`archives: { categories: 'kategorie' }`). Without lib/content:
`resolveLinkHref(link, { config, locale, archives, pagesSlug })`. An entry with no assigned archive → `null`
(the link does not render). The entry path is built by `buildEntryPath`, which **always**
adds `/{locale}` — on a single-language site a link to an entry gets a needless `/pl/…` prefix
@@ -124,7 +124,7 @@ export async function CMSLink({ link, locale, className, children }: { link: Cms
```
**Do not write your own version** (`resolveHref`, `getHref`, `` `/${slug}` ``, `slug === 'home'`): it loses the language
prefix, the home page from Site Settings, the `javascript:` filter and dead links. `ipal-audit` reports it as an
prefix, the home page from Site settings, the `javascript:` filter and dead links. `ipal-audit` reports it as an
ERROR. A field in a different shape (e.g. `page` + `url`) is mapped onto the plugin's shape instead of computing the href:
`resolveLink(url?.trim() ? { type: 'external', url } : { type: 'internal', page }, locale)`.
@@ -142,7 +142,7 @@ const legal = await getSystemLinks(locale) // from lib/con
await getSystemLinks(locale, ['privacyPolicy', 'termsOfService']) // selected roles
// without lib/content: resolveSystemLinks(settings, { locale, config: i18nConfig, homeSlug, roles })
```
Pages are assigned in Site Settings → System Pages; **the label is the page title** in the given language, so there
Pages are assigned in Site settings → System pages; **the label is the page title** in the given language, so there
is no text in code (a hard-coded "Polityka prywatności" breaks the EN version). An unassigned role → skipped.
## Menu — `resolveNav`