deepl 0.0.1
deepl: ^0.0.1 copied to clipboard
An inofficial dart library that calls the DeepL API
!This library is a work in progress!
deepl-dart #
This is an inofficial library that accesses the DeepL API.
Install #
Put deepl: <latest version> into your pubspec.yaml or call dart pub add deepl or flutter pub add deepl, respectively.
Usage #
Create an instance with
var deeplApi = DeepLApi.fromAuthKey(<your API key>);
and access the API through the namespaces e.g.
var translation = (await deepl.translations.translateText(
options: TranslateTextRequestOptionsBuilder.simple(
text: 'Hello',
target: TargetLanguage.ES,
).build(),
))
.first;
print(
'Detected language: ${translation.detectedLanguage?.name}, translation: ${translation.text}');
Supported endpoints #
- ✅ Translating documents
- ✅ Pploading files
- ✅ Checking file status
- ✅ Downloading document
- ✅ Translating text
- ✅ Glossaries
- ✅ Tranlation quota