translate_text 1.7.0 translate_text: ^1.7.0 copied to clipboard
A simple Dart package to translate text between languages using the MyMemory Translation API. It provides an easy way to integrate translation features into your Dart or Flutter applications.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add translate_text
With Flutter:
$ flutter pub add translate_text
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
translate_text: ^1.7.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:translate_text/translate_text.dart';