Files
solon/package.json
CatoandClaude Opus 5.5 21f6a39fe0 feat(i18n): Solon in five languages — English, German, French, Italian, Russian
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.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
2026-09-25 11:49:00 +02:00

65 lines
1.9 KiB
JSON

{
"name": "solon",
"version": "0.1.0",
"packageManager": "pnpm@11.25.0",
"engines": {
"node": ">=20"
},
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"design:check": "node scripts/design-system-check.js",
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run design:check && pnpm run test",
"test": "vitest run",
"test:e2e": "playwright test",
"test:puppeteer": "BASE_URL=${BASE_URL:-http://localhost:3000} node tests/puppeteer/smoke.mjs",
"test:puppeteer:mega": "BASE_URL=${BASE_URL:-http://localhost:3000} node tests/puppeteer/mega-menu.mjs",
"format": "prettier --write .",
"format:check": "prettier --check .",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push"
},
"dependencies": {
"@fleet/design-tokens": "npm:@bitbaum/design-tokens@^1.1.0",
"@noble/hashes": "2.4.0",
"@noble/secp256k1": "3.2.0",
"@scure/base": "^2.4.0",
"bs58check": "^4.0.0",
"clsx": "2.1.1",
"drizzle-orm": "^0.45.1",
"lucide-react": "1.47.0",
"next": "16.3.5",
"next-auth": "^5.0.0-beta.32",
"next-intl": "^4.14.6",
"pg": "^8.23.0",
"react": "19.3.0",
"react-dom": "19.3.0",
"tailwindcss": "4.3.3",
"zod": "^4.6.5"
},
"devDependencies": {
"@playwright/test": "1.63.0",
"@tailwindcss/postcss": "4.3.3",
"@types/node": "26.6.1",
"@types/pg": "^8.23.1",
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"drizzle-kit": "^0.31.9",
"eslint": "10.10.0",
"eslint-config-next": "16.3.5",
"espree": "^11.2.0",
"postcss": "8.5.28",
"prettier": "3.9.8",
"puppeteer": "25.11.0",
"ts-node": "10.9.2",
"tsx": "^4.23.13",
"typescript": "^6.0.3",
"vitest": "^5.0.1"
}
}