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: Reduce Client-bundle Size #73

Closed LorisSigrist closed 2 months ago

LorisSigrist commented 2 months ago

Context

We are currently using a Constructor based API for initializing the adapter. This is great since all the config is in one place, but it has drawbacks. Mainly that it can't be automatically tree-shaken.

One of paraglide's main advantages is that it's small. The Adapters should be very slim on the client to keep that advantage.

Proposal

Implement the following steps: