mirror of
https://github.com/bitbaum/solon.git
synced 2026-12-04 04:47:02 +01:00
Phase A of the plan of record (docs/design/2026-09-solon-plan.md, added here).
- next-intl, the fleet's i18n choice (STACK.md), in evig's layout: pages move
under src/app/[locale]/ (API routes stay outside), English unprefixed, the
others at /de /fr /it /ru, no Accept-Language guessing.
- messages/<locale>.json carry every sentence of the header, footer, mobile
menu, home, /hire, /security, /credits and every photo's alt text. German
follows Swiss spelling. Machine-drafted; native review is open.
- t() keys are typed against en.json (a missing key fails typecheck); a parity
test fails if a language lacks, adds, empties or drops a {placeholder}.
- Language switcher in the header (native <select>) and the mobile menu.
- Pages not yet translated stay English and say so in the reader's language
(TRANSLATED_ROUTES in site-config).
- Every internal link goes through @/i18n/navigation, so a reader on /de stays
on /de; the last plain <a> links to internal pages became Links.
- Glarus copy corrected against sources: "since at least 1387" (first recorded,
not continuous), plus the 2006 floor amendment that merged 25 municipalities
into 3.
- e2e: each language's front page, the switcher, the notice, API routes
outside languages. 41/41 locally against a production build.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
38 lines
863 B
JSON
38 lines
863 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["dom", "dom.iterable", "es2022"],
|
|
"allowJs": false,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"paths": {
|
|
"@/assets/*": ["./src/assets/*"],
|
|
"@/i18n/*": ["./src/i18n/*"],
|
|
"@/components/*": ["./src/components/*"],
|
|
"@/lib/*": ["./src/lib/*"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
]
|
|
},
|
|
"include": [
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
"next-env.d.ts",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"exclude": ["node_modules", ".next", ".claude/worktrees"]
|
|
}
|