TTradux examples
Tradux examples
Try Tradux here →

Ship multilingual UI without starting from zero

Browse live Tradux starters, compare the framework integrations, and copy the exact clone-and-run commands you need. This root page now switches locale on the server, so the HTML itself arrives translated and accessible.

  • 5live starters
  • SSR + SPAserver and client examples
  • AI CLItranslation workflow

AI-powered CLI

Initialize your config, translate JSON with your preferred provider, and keep the workflow close to your codebase.

Differential updates

Tradux remembers what changed, so update runs only retranslate the keys that actually moved.

SSR-friendly cookies

Server-rendered apps can read the tradux_lang cookie before rendering and ship the right locale immediately.

Real starters

Open a framework example, inspect the import path, and test the live route before cloning anything locally.

How Tradux works

Translate JSON once, then let the runtime react everywhere

The landing page is aligned with the project README: CLI first, reactive runtime second, SSR support when your stack needs it.

1. Create source copy

Keep a default language JSON as the source of truth and use special markers when some keys must stay untouched or always update.

2. Generate locales with the CLI

Tradux translates the missing content, updates only what changed later, and keeps available languages synchronized with your files.

3. Render the right language

Framework hooks keep SPAs reactive, while SSR apps can read the cookie first and send fully localized HTML from the server.

Available integrations

Pick the starter that matches your stack

Every card includes the live route, the right import path, a quick explanation of when to use it, and a richer command block you can copy.

UI hook

React + Vite

tradux/react

Use the React hook when you want reactive translations inside components with language switching triggered from your UI.

How to start

Clone the repository, enter the React example, install dependencies with pnpm, and start the Vite dev server.

Route

/react-vite/

Live preview route
Starter commands Clone → install → dev
01$git clone https://github.com/JojoDeveloper01/Tradux.git02$cd Tradux/examples/frameworks/react-vite03$pnpm install04$pnpm dev

Composable API

Vue + Vite

tradux/vue

Use the Vue integration when you want Tradux state inside components through the framework composable API.

How to start

Clone the repository, open the Vue example, install dependencies, and run the local Vite server.

Route

/vue-vite/

Live preview route
Starter commands Clone → install → dev
01$git clone https://github.com/JojoDeveloper01/Tradux.git02$cd Tradux/examples/frameworks/vue-vite03$pnpm install04$pnpm dev

Reactive stores

Svelte + Vite

tradux/svelte

Use the Svelte integration when you want Tradux values exposed as stores with automatic updates after a language change.

How to start

Clone the repository, move into the Svelte example, install packages, and start the Vite dev server.

Route

/svelte-vite/

Live preview route
Starter commands Clone → install → dev
01$git clone https://github.com/JojoDeveloper01/Tradux.git02$cd Tradux/examples/frameworks/svelte-vite03$pnpm install04$pnpm dev

Base runtime

Vanilla JS + Vite

tradux

Use the base package when you are outside a framework and want to initialize Tradux directly with JavaScript or TypeScript.

How to start

Clone the repository, open the Vanilla example, install dependencies, and run the Vite environment.

Route

/vanilla-vite/

Live preview route
Starter commands Clone → install → dev
01$git clone https://github.com/JojoDeveloper01/Tradux.git02$cd Tradux/examples/frameworks/vanilla-vite03$pnpm install04$pnpm dev

SSR-ready

Astro

tradux

Use the Astro example when you need server-rendered translations and want to read the Tradux cookie before sending HTML.

How to start

Clone the repository, open the Astro example, install dependencies, and start the Astro dev server.

Route

/astro/

Live preview route
Starter commands Clone → install → dev
01$git clone https://github.com/JojoDeveloper01/Tradux.git02$cd Tradux/examples/frameworks/astro03$pnpm install04$pnpm dev