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

The minimum amount of code you need to start translating text with Deep Translator API.

Deep Translator for Dart #

Pub Version Pub Version

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.

0
likes
155
points
34
downloads

Documentation

Documentation
API reference

Publisher

verified publisherlibsrc.dev

Weekly Downloads

The minimum amount of code you need to start translating text with Deep Translator API.

Homepage
Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

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

License

MIT (license)

Dependencies

deept_client_dio, dio

More

Packages that depend on deeptc