Lingo.dev SDK
AI translation at runtime with Lingo.dev
Introduction
Lingo.dev SDK is a collection of libraries that add AI-powered translation to your applications. Unlike Lingo.dev CLI which handles static file localization, the SDK translates dynamic content like user messages, comments, and live data.
The SDK integrates with Lingo.dev's specialized translation engine for optimized performance, top quality, and automatic failovers.
When to use
Use Lingo.dev SDK for applications that need runtime translation capabilities:
- Chat applications and messaging platforms
- Email clients and communication tools
- Social media tools and content management systems
- Customer support systems with live interactions
The SDK complements Lingo.dev CLI in complete localization workflows. Use CLI and CI/CD integrations for static content, SDK for dynamic translation.
Supported platforms
- Model Context Protocol (MCP) — For integrating with AI assistants
- JavaScript SDK — For web applications, Node.js servers, and frontend frameworks
- PHP SDK — For PHP applications and Laravel projects
- Python SDK — For Python applications, such as Django-based apps
Supported features
The SDKs share a lot of features in common, but there's not perfect parity between them. Refer to the following table to understand how the SDKs differ.
Feature | JavaScript | PHP | Python |
---|---|---|---|
Text translation | ✓ | ✓ | ✓ |
Object/array translation | ✓ | ✓ | ✓ |
Batch translation | ✓ | ✓ | ✓ |
Chat translation | ✓ | ✓ | ✓ |
HTML translation | ✓ | ✗ | ✗ |
Language detection | ✓ | ✓ | ✓ |
Progress tracking | ✓ | ✓ | ✓ |
Fast mode | ✓ | ✓ | ✓ |
Reference data/glossaries | ✗ | ✗ | ✓ |
Concurrent processing | ✗ | ✗ | ✓ |