deepl 0.0.1 copy "deepl: ^0.0.1" to clipboard
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
0
likes
140
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

An inofficial dart library that calls the DeepL API

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

csv, http, json_annotation

More

Packages that depend on deepl