mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 05:57:42 +01:00
lib/i18n/locales.ts takes the list, names, BCP-47 tags and the
Accept-Language guess from @bitbaum/langkit 0.2.0; the switcher groups,
order, short labels and explanation languages stay Heidi's.
Nothing a visitor sees changed: langkit.test.ts pins names and tags to
their old values and compares the guess with the old one on nineteen real
headers. Two fixes: a space before q= ("it; q=0.9") matched no language
and showed German; a language marked q=0 could be chosen. The same test
runs langkit's check over the seven dictionaries (2,435 messages each:
placeholders, no ß in de/gsw).
Checked on a production build: first-visit guesses, the remembered
choice, html lang per page, the seven names at 390px without overflow.
Claude-Session: https://claude.ai/code/session_019MDtmsTRGc34xnG6koVuAY
Co-authored-by: Claude <noreply@anthropic.com>
66 lines
2.2 KiB
JSON
66 lines
2.2 KiB
JSON
{
|
|
"name": "heidi",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "node scripts/media/ensure.mjs && next build",
|
|
"start": "next start",
|
|
"lint": "eslint .",
|
|
"type-check": "tsc --noEmit",
|
|
"check:file-inputs": "chatkit-check-file-inputs app lib",
|
|
"verify": "pnpm run type-check && pnpm run lint && pnpm run check:file-inputs && pnpm run test",
|
|
"verify:main": "pnpm run type-check && pnpm run lint && pnpm run check:file-inputs",
|
|
"test": "node --no-warnings --experimental-strip-types --experimental-test-module-mocks --test-concurrency=1 --test 'app/**/*.test.ts' 'lib/**/*.test.ts'",
|
|
"db:generate": "drizzle-kit generate",
|
|
"audit:responsive": "node scripts/audit/responsive.mjs",
|
|
"audit:overlays": "node scripts/audit/overlays.mjs",
|
|
"audit:speaking": "node scripts/audit/speaking.mjs",
|
|
"audit:language": "node scripts/audit/language.mjs",
|
|
"glosses:coverage": "node --no-warnings --experimental-strip-types scripts/gloss-coverage.ts"
|
|
},
|
|
"dependencies": {
|
|
"@better-auth/passkey": "^1.7.18",
|
|
"@bitbaum/accountkit": "^0.34.0",
|
|
"@bitbaum/ai-kit": "^1.31.0",
|
|
"@bitbaum/bip-kit": "^0.10.0",
|
|
"@bitbaum/chatkit": "^0.50.0",
|
|
"@bitbaum/design-tokens": "^1.7.1",
|
|
"@bitbaum/langkit": "^0.2.0",
|
|
"@bitbaum/limitkit": "^0.2.1",
|
|
"@bitbaum/mail-kit": "0.4.0",
|
|
"@bitbaum/paykit": "^0.4.0",
|
|
"@bitbaum/searchkit": "^0.2.3",
|
|
"@bitbaum/speechkit": "^1.0.1",
|
|
"@bitbaum/threadkit": "^0.1.2",
|
|
"@bitbaum/whenkit": "^0.3.3",
|
|
"better-auth": "^1.7.18",
|
|
"drizzle-orm": "^0.45.4",
|
|
"next": "16.4.5",
|
|
"pg": "^8.23.1",
|
|
"react": "19.3.1",
|
|
"react-dom": "19.3.1",
|
|
"uqr": "^0.1.3",
|
|
"web-push": "^4.0.0",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@electric-sql/pglite": "^0.5.15",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^26.6.6",
|
|
"@types/pg": "^8.23.1",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/web-push": "^3.6.4",
|
|
"drizzle-kit": "^0.31.11",
|
|
"eslint": "^9.39.5",
|
|
"eslint-config-next": "16.4.5",
|
|
"playwright": "^1.65.0",
|
|
"sharp": "0.35.5",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^6.0.3"
|
|
},
|
|
"packageManager": "pnpm@11.25.0"
|
|
}
|