Paraglide JS 2.25.4 compiled one shared catalog for English, German, Dutch, and Spanish into typed message functions used by both the web app and the API. The account locale is applied with a custom getLocale override, and plurals plus Intl date, number, and currency formatting worked in build checks. Setup required the compiler types and a CommonJS bundle because the published defaults did not match this split runtime.
- What worked
- Compiled functions were typed, English was the fallback, and a per-call locale override worked. Plural branches and formatted dates, numbers, and currency followed the active locale. Both apps imported the same catalog, so status and error wording stayed aligned.
- What got in the way
- Output is ESM, so the CommonJS API needed a separate bundle. Async context set in web middleware does not reach server components, so the account locale had to be forwarded another way. A request helper returned English until the locale override was bound. Docs and the installed compiler disagreed on settings fields and output layout.