IAPL rename: docs, agent guide, skills, reference site and starter on the new names; changelog draft

- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms);
  past CHANGELOG entries and the proposals in docs/dev are not rewritten
- AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames
- iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required
- env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup
- skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were
- reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:36:09 +01:00
co-authored by Claude Fable 5.2
parent 425fac14fb
commit b91984fbcd
149 changed files with 1930 additions and 1747 deletions
+7 -7
View File
@@ -7,7 +7,7 @@ language switching without 404.
## Config (payload.config.ts)
```ts
ipalKit({
iapl({
i18n: {
defaultLocale: 'pl',
locales: [
@@ -28,8 +28,8 @@ ipalKit({
The `i18n` option is **required** (type `I18nConfig`). The plugin sets `config.localization`
from it (overriding the project's own `localization`). Validation is eager — already when
`ipalKit()` is called, also with `enabled: false`: an empty list, missing `code`/`label`,
duplicate codes, a `defaultLocale` not in the list, a bad code format → error `[ipal] i18n: ...`.
`iapl()` is called, also with `enabled: false`: an empty list, missing `code`/`label`,
duplicate codes, a `defaultLocale` not in the list, a bad code format → error `[iapl] i18n: ...`.
**`fallback: true` and saving.** Reading a language with no value returns the default language's value —
and **saving the document persists it**: saving a page (in the admin panel or with `payload.update`) in any
@@ -307,7 +307,7 @@ sitemap, canonical), two or more = with the prefix. With one language, **do not
structure in advance — the plugin would generate `/kontakt` links while pages live under `/pl/kontakt`.
When the client adds a second language:
1. add the language to `i18n.config.ts` (and `localization` in Payload via `ipalKit`),
1. add the language to `i18n.config.ts` (and `localization` in Payload via `iapl`),
2. move `app/(frontend)/*` to `app/(frontend)/[locale]/`, and `app/md/[[...slug]]` to `app/md/[locale]/[[...slug]]`,
3. the layout takes `locale` from `params` (PROGRAMISTA §2.8) — `createPageRoute` / `createNotFoundPage` unchanged,
4. translate slugs and content in the admin panel.
@@ -412,7 +412,7 @@ Payload takes the browser's language (English or Polish), else `i18n.fallbackLan
default `en`). An English browser therefore gets an English panel — 2FA screens included — on a
Polish site; set `i18n.fallbackLanguage: 'pl'` in your config to change the last step.
- **Default:** when the project's `buildConfig` has no `i18n.supportedLanguages`, ipal-kit
- **Default:** when the project's `buildConfig` has no `i18n.supportedLanguages`, IAPL
sets English and Polish. A project that sets its own list keeps it, untouched:
```ts
@@ -437,11 +437,11 @@ Polish site; set `i18n.fallbackLanguage: 'pl'` in your config to change the last
A language the plugin has no texts for (e.g. `de`) gets the English ones until you
add yours.
- **Building blocks** for your own admin components: `ipalT(t, key, vars)` reads a plugin
- **Building blocks** for your own admin components: `iaplT(t, key, vars)` reads a plugin
text through Payload's `t`; `formatNumber(n, language)` and `formatDateTime(iso, language, timeZone?)`
format in the admin language; `defineTexts({ en, pl })` declares a text set whose Polish keys
must match the English ones; `ADMIN_LANGUAGES` lists the plugin's languages;
`applyAdminI18n(config)` is the config step itself (already applied by `ipalKit`).
`applyAdminI18n(config)` is the config step itself (already applied by `iapl`).
- **Browser-tab title of a custom admin view:** Payload takes a view's `meta.title` as one
plain string and never translates it (its custom-view metadata ignores `i18n`), so the
server-rendered title stays in that one language. Render `<DocumentTitle title={…} />`