wluwd / t

Lightweight, unopinionated, framework agnostic, and type-safe translation library
MIT License
3 stars 1 forks source link

Consider adding user-definable hooks or events #17

Open macarie opened 10 months ago

macarie commented 10 months ago

It may be helpful for some things.

e.g., it would allow to sync locale status with the server (setLocale -> fetch request automatically).

On the other hand, it's possible to do what the example suggests by exporting the locale store used by adapters. Both Jotai and nanostores allow subscribing to a store's value; in Solid and Vue, the reactive primitives are not bound to components; Svelte?