mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
Lifts the per-locale message map and the dotted-key resolver out of `src/lib/i18n/context.tsx` and `src/lib/i18n/server-translator.ts` into a new `src/lib/i18n/shared-resolve.ts`. The two surfaces had each carried their own private copy of the same data structure and the same six-step path resolver; the maps drifted twice when a new locale was added during v1.4.18 and v1.4.25 polishing passes. Pinning both call-sites to a shared module keeps client and server fallback semantics in lockstep and shrinks the surface a future locale addition has to touch from two files to one.