Deep Translator for Dart
This library provides a function that translate a given text to a given language using Deep Translate API.
Installation
dependencies:
deeptc: ^<latest-version>
Import:
import 'package:deeptc/deeptc.dart';
Usage
The usage is pretty straightforward:
import 'package:deeptc/deeptc.dart';
print(await translate('Hi, welcome to the club!', to: 'pt'));
// >> Oi, bem vindo ao clube!
Close the associated HTTP client using:
import 'package:deeptc/deeptc.dart';
print(await translate('Hi, welcome to the club!', to: 'pt'));
// >> Oi, bem vindo ao clube!
// ... HTTP connections are still alive for performance concerns.
// Dio client keep the HTTP connections alive.
// To kill any live HTTP connection call:
await closeTranslateDioClient();
Contributing
TODO.