deeptc

Creator: coderz1093

Last updated:

0 purchases

deeptc Image
deeptc Images

Languages

Categories

Add to Cart

Description:

deeptc

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>
copied to clipboard
Import:
import 'package:deeptc/deeptc.dart';
copied to clipboard
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!
copied to clipboard
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();
copied to clipboard
Contributing #
TODO.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.