This repo contains fully working examples of
wuchale, the modern, normal code
based internationalization toolkit for JavaScript, TypeScript, and Svelte
projects.
Each example demonstrates a different use case and integration strategy — from minimal setups to advanced per-file catalog loading, including server-side support.
- Uses only
wuchalecore and the builtin adapter-vanilla - Works directly with the DOM
- Uses a single catalog per locale
- Shows how to use
wuchalein a basic React app - Great for client-only React projects
- Uses a single catalog per locale
- Shows how to use
wuchalein a basic Svelte app (no routing) - Great for client-only Svelte projects
- Uses a single catalog per locale
- Basic SvelteKit integration with locale inside query parameters
/?locale=en - Supports SSR so it works even without JavaScript
- Uses a single catalog per locale
- Routes directly as URL parameters like
/en - Supports SSR so it works even without JavaScript
- Uses multiple adapters and that means multiple catalogs for different parts of the application
- Some of the adapters divide the compiled catalogs into smaller parts for granular loading
- Supports server generated messages using the builtin adapter-vanilla
- Ideal for production-grade apps with large or modular UIs
- Shows how to use
wuchalein a basic SolidJS app - Great for client-only SolidJS projects
- Uses a single catalog per locale
- Uses the write files functionality to work in the absense of Vite
- Uses only the builtin vanilla adapter
- Uses Express as the framework
- Shows how to use
wuchalewith server-only projects
- Clone the repo and go to one of the examples.
git clone https://github.com/wuchalejs/examples.git cd examples/sveltekit - Install dependencies
pnpm install # or npm install - Start the dev server
pnpm dev # or npm run dev
- Website: wuchale.dev
- Main repo: github.com/wuchalejs/wuchale
- NPM:
If you find this helpful, give it a ⭐ on GitHub and share your feedback or feature ideas!