llmtranslate is a lightweight Python library that leverages LangChain’s ChatModels (like OpenAI’s GPT‑4o and others) to perform language detection and full-text translation. It offers both synchronous and asynchronous interfaces, enabling developers to easily integrate multilingual translation functionality into Python applications or workflows. Installable via pip, it supports a wide range of languages and provides chunking and concurrency controls for handling large or multilingual texts.
Key Features
Detects input language with ISO‑639 codes and language name
Translates text to a specified target language
Supports multilingual inputs in a single document
Provides both synchronous (Translator) and asynchronous (AsyncTranslator) APIs