translate_text 1.2.0 translate_text: ^1.2.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.
example/translate_text_example.dart
import 'package:translate_text/translate_text.dart';
void main() async{
final textService = TranslationService();
final text= await textService.translateText("Hello World!", "en", "ar");
print(text);
//output: مرحبا بالعالم
}