Reactive Framework Hooks


Tradux isn't just a CLI; it provides native reactive hooks for your frontend. You can import `useTradux()` directly from subpaths like `tradux/react`, `tradux/vue`, or `tradux/svelte`.

These hooks expose a standard set of variables: `t` (for your translations), `currentLanguage`, `isReady`, and functions like `setLanguage()` and `getAvailableLanguages()`.

Because Tradux uses a shared memory cache, you only need to wait for `isReady` at the root of your application. All child components will instantly receive translations with zero network requests or loading flicker.