deept_client_dio 0.2.0 copy "deept_client_dio: ^0.2.0" to clipboard
deept_client_dio: ^0.2.0 copied to clipboard

Deep Translator HTTP client based on Dio. Cross-platform API wrapper written in pure Dart.

Deep Translator for Dart #

Pub Version Pub Version

This is a library for interacting with Deep Translator API. It works on all platforms and exposes a collection of data classes and a extendable client interface.

Notice: This is a unofficial project, maintained by volunteers.

Installation #

dependencies:
  deept_client_dio: ^<latest-version>

Import:

import 'package:deept_client_dio/deept_client_dio.dart';

Usage #

The usage is pretty straightforward:

final deept = DeepTranslatorClientDio.create();
final response = await deept.google.translate('Welcome to the club!');

print(response.translation); // Bem vindo ao clube!
print(response.error); // null

Services that are currently available (complete or partially complete):

  • ✅ Google translate.
  • ❌ DeepL.
  • ❌ Microsoft translator.
  • ❌ MyMemory.
  • ❌ Linguee.
  • ❌ Yandex.
  • ❌ Pons.
  • ❌ Papago.
  • ❌ Libre translate.
  • ❌ QCRI.

All services are accessible by deept.<service-name>.<endpoint-name>(...).

Custom Dio instance #

By default, this package uses fresh Dio instance for handling HTTP requests, if you want to provide a custom instance, use dio argument:

final myDioInstance = Dio();
final deept = DeepTranslatorClientDio.create(dio: myDioInstance);

Contributing #

TODO.

1
likes
140
pub points
20%
popularity

Publisher

verified publisheralexrintt.io

Deep Translator HTTP client based on Dio. Cross-platform API wrapper written in pure Dart.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com
github.com
donate.alexrintt.io
www.patreon.com

License

MIT (license)

Dependencies

deept_client, dio, freezed_annotation, json_annotation, ndjson, retrofit

More

Packages that depend on deept_client_dio