Welcome to the tstlai documentation.
Getting Started#
| Guide | Description |
|---|---|
| Installation | Install tstlai via npm/pnpm/yarn |
| Quick Start | Zero to translated in 5 minutes |
Framework Guides#
| Guide | Description |
|---|---|
| Next.js Integration | App Router, Auto-Translate, Page Translations |
| Express / Node.js | Middleware for server-rendered apps |
| Caching | Redis and in-memory caching strategies |
| CLI Generate | Generate translation files from source JSON |
| Security | API protection, XSS, and best practices |
API Reference#
| Reference | Description |
|---|---|
| Core API | Tstlai class, configuration options |
| Integrations | Framework-specific adapters and helpers |
Quick Links#
- Fastest setup: Auto-Translate — 2 minutes, zero refactoring
- No JSON files: Page Translations
- Migrating from next-intl: JSON Adapter
- Static generation: CLI Generate — Generate all translations at build time