typesafe-i18n
A fully type-safe and lightweight internationalization library for TypeScript and JavaScript projects. It provides extensive type safety features to prevent mistakes in translations and offers a clean syntax for managing localized content.
Key Features:
- :baby_chick: Lightweight (~1kb)
- :ok_hand: Easy-to-use syntax
- :running: Fast and efficient
- :safety_vest: Prevents mistakes with strict type checking (even in plain JavaScript via JSDoc)
- :construction_worker: Generates boilerplate code automatically
- :speech_balloon: Supports plural rules
- :date: Locale-dependent formatting (dates, numbers, etc.)
- :left_right_arrow: Switch-case statements (e.g., gender-specific output)
- :arrow_down: Asynchronous locale loading
- :books: Supports namespaces
- :stopwatch: SSR (Server-Side Rendering) compatible
- :handshake: Works for frontend, backend, and API projects
- :mag: Built-in locale detection
- :arrows_counterclockwise: Import/export translations from files or services
- :no_entry: No external dependencies
Supported Frameworks:
- Svelte (adapter
- React (adapter
- Vue (adapter
- Angular (adapter
- SolidJS (adapter
- Node.js (adapter
- Browser (
typescriptinternationalizationlocalizationi18njavascriptangularlightweightreactsvelteangular2nodejssolidvue
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button