opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
23 stars 0 forks source link

NextJS Adapter add "setLanguage" utility function #92

Closed LorisSigrist closed 2 months ago

LorisSigrist commented 2 months ago

Context

As described in PARJS-31 the language tag currently doesn't get set in server actions.

Proposal

Add a "setupLanguageTag" utility function that set's the language on the server & document that people should use that in server actions.

This will act as a stopgap solution until we can do a proper fix in 1.0.