Spike: Lingui (gettext) with Next 16, Turbopack and cacheComponents #3
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #1
Blocked by: #2
What
Prove the i18n setup from ADR-0007 before the UI grows.
Acceptance criteria
.pocatalogs, English source-text msgids,en(source) anddecatalogs,lingui extractscript@lingui/swc-pluginpinned to the exact version compatible with the project's Next version (verify on plugins.swc.rs); if that fails under Turbopack, use the Babel macro and document why in ADR-0007Titlebar) and one translated Client ComponentAccept-Language, else defaulten; no locale URL prefixcacheComponents: true: locale-dependent UI under<Suspense>, nocookies()/headers()inside"use cache"npm run buildpasses; short notes on the setup added to the README or ADR-0007Vocabulary:
GLOSSARY.md. Decisions:docs/adr/.Implemented in #34: Lingui 6 with .po catalogs, @lingui/swc-plugin pinned to 6.7.1 (matched on SWC crates, since plugins.swc.rs doesn't list Next 16.4 yet), locale from cookie → Accept-Language → en, translated Server/Client Components under Suspense, language switch via Server Action. Setup notes in ADR-0007.