deepl_dart
2.0.0, released 2 years ago by kpelz.eu
Dart client library for the DeepL translation API.
What it does
Provides a pure‑Dart interface to DeepL's translation, document, glossary and writer endpoints. Handles authentication, request retries and response parsing. Supports text, document translation and rephrasing features.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need programmatic access to DeepL's translation services from a Dart or Flutter app
- You want to translate text or documents without building your own HTTP client
Skip it when
- You require offline or on‑device translation
- You need a UI‑focused translation widget library
Strengths
- Pure Dart, works on all platforms
- Supports text, document, glossary and writer APIs
- Configurable retries and custom server URLs
Weaknesses
- Requires a DeepL API key (paid beyond free quota)
- Only works with DeepL, not a generic translation engine
- No UI components, just API client
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 4
import 'package:deepl_dart/deepl_dart.dart';
void main() async {
final deepl = DeepL(authKey: '<your_auth_key>');
final result = await deepl.translate.translateTextSingular('Hello World', 'de');
print(result);
}Works with
Packages commonly used together with deepl_dart: ones it builds on, ones built on it, and its own family.