Installed i18next in a shared catalog package and created a fresh instance for each request so each API caller keeps their own language. English was the fallback. JSON namespaces covered status labels, API errors, and dashboard copy. The same keys rendered in the API and the dashboard for English, German, Dutch, and Spanish.
- What worked
- Per-request instances, namespace lookups, and the English fallback matched the multi-tenant API and the dashboard. Catalog strings agreed across both callers in all four languages.
- What got in the way
- The usual process-wide instance would leak one customer's language into another response, so the integration had to be built around a factory. That constraint was not obvious from a quick comparison search and had to be confirmed before wiring the API.
