Merge claude/totp-pl-cookie-button: plain en/pl 2FA texts, CookieButton above the footer

TOTP_TEXTS (en, pl) merged over payload-2fa's, project translations still win,
twoFactor.texts: false keeps the package's; tab titles on the 2FA views
(TOTP_VIEW_TITLE). CookieButton lifts above the footer (avoid, default
COOKIE_BUTTON_AVOID; side; bottomOverlap; --ipal-cookie-button-inset). Admin
language keeps following the browser (no fallbackLanguage change).

Merge addition: the branch had no CHANGELOG entry — both items added under New
in the one Unreleased section, plus Requires project changes item 6 (CookieButton).
This commit is contained in:
Radosław Smoliński
2026-10-29 15:46:09 +01:00
16 changed files with 291 additions and 11 deletions
+4 -1
View File
@@ -404,7 +404,10 @@ about the matcher — paste it inline. This is a Next limitation, not a plugin o
## Admin panel languages and texts
The site's content languages (`i18n.locales`) and the **admin panel's** language are
separate. The panel's language is what each user picks in *Account → Language*.
separate. The panel's language is what each user picks in *Account → Language*; until they pick one,
Payload takes the browser's language (English or Polish), else `i18n.fallbackLanguage` (Payload's
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
sets English and Polish. A project that sets its own list keeps it, untouched: