tstlai Documentation

TypeScript Translation AI - Just-In-Time Web Localization Engine

Welcome to the tstlai documentation.

Getting Started#

GuideDescription
InstallationInstall tstlai via npm/pnpm/yarn
Quick StartZero to translated in 5 minutes

Framework Guides#

GuideDescription
Next.js IntegrationApp Router, Auto-Translate, Page Translations
Express / Node.jsMiddleware for server-rendered apps
CachingRedis and in-memory caching strategies
CLI GenerateGenerate translation files from source JSON
SecurityAPI protection, XSS, and best practices

API Reference#

ReferenceDescription
Core APITstlai class, configuration options
IntegrationsFramework-specific adapters and helpers