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

outdated

Dart library for the DeepL language translation API.

example/deepl_dart_example.dart

import 'package:deepl_dart/deepl_dart.dart';

void main() async {
  // Construct Translator
  Translator translator = Translator(authKey: '<your_auth_key>');

  // Translate text
  TextResult result =
      await translator.translateTextSingular('Hello World', 'de');
  print(result);

  // Translate list of texts
  List<TextResult> results =
      await translator.translateTextList(['Hello World', 'Hola Mundo'], 'de');
  print(results);
}
25
likes
0
pub points
80%
popularity

Publisher

verified publisherkpelz.eu

Dart library for the DeepL language translation API.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, http, json_annotation

More

Packages that depend on deepl_dart