mirror of
https://github.com/bitbaum/kits.git
synced 2026-12-04 06:17:56 +01:00
* langkit: one way to be multilingual across the fleet A survey of the bitbaum repos (docs/survey-2026-11-29.md) found 22 apps with more than one language: 14 on next-intl, 8 with their own tables, and around them 8 private Accept-Language parsers, 4 cookie names and 12 home-made completeness checks. The decision (docs/decision.md) keeps ICU MessageFormat on next-intl's engine and puts the repeated parts in one package: - defineLanguages: the list, names, direction, fallbacks, regional variants - pickLocale: the reader's choice, the browser, the content, the default - createMessages: typed ICU messages on use-intl/core, usable in server components without a provider; de-CH is German respelled, not a file - langkit check: missing/extra/empty keys, ICU syntax, arguments, plural forms, ß in Swiss German; for each app's verify - toIcu: drafts ICU messages from hand-written copy tables - LanguageSwitcher: plain links, fits sitekit's masthead actions Proof without touching the app: BiasLens's rewrite-copy.ts (copied at c3497b7 as a fixture), all 107 entries in en, de, de-CH and fr, says the same through langkit. Two deliberate differences are asserted as tests. Not on npm yet: a new package needs the owner's one npm sign-in (README). Claude-Session: https://claude.ai/code/session_019MDtmsTRGc34xnG6koVuAY * langkit: private until its first publish A merged version bump publishes from GitLab, and npm cannot trust a package that does not exist yet. Marked private so the merge starts no publish that must fail; publishing 0.1.0 is the owner's one npm sign-in plus removing this line. Claude-Session: https://claude.ai/code/session_019MDtmsTRGc34xnG6koVuAY --------- Co-authored-by: Claude <noreply@anthropic.com>