libre_translate 1.0.0 copy "libre_translate: ^1.0.0" to clipboard
libre_translate: ^1.0.0 copied to clipboard

A simple wrapper around the LibreTranslate API.

example/example.dart

import 'package:libre_translate/libre_translate.dart';

void main() async {
  // libretranslate.com requires an API key, so we use a mirror that doesn't require one.
  final client = LibreTranslateClient(base: Uri.https('translate.terraprint.co'));

  print(await client.translate('Hello!', source: 'en', target: 'fr'));
}
1
likes
140
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A simple wrapper around the LibreTranslate API.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on libre_translate