All Projects → gabrielpacheco23 → Google Translator

gabrielpacheco23 / Google Translator

Licence: mit
Free Google Translator for Dart

Programming Languages

dart
5743 projects
dartlang
94 projects

Projects that are alternatives of or similar to Google Translator

Google Translate Api
A free and unlimited API for Google Translate 💵🚫
Stars: ✭ 1,996 (+2835.29%)
Mutual labels:  google, translate
Alfred Polyglot
🈚️ Translate text using Google Translate in Alfred
Stars: ✭ 142 (+108.82%)
Mutual labels:  google, translate
Trino
Trino: Master your translations with command line!
Stars: ✭ 118 (+73.53%)
Mutual labels:  google, translate
Googletranslate
🌐 Google 翻译 Mac 客户端
Stars: ✭ 688 (+911.76%)
Mutual labels:  google, translate
Translators
🌏🌍🌎Translators🌎🌍🌏 is a library which aims to bring free, multiple, enjoyable translation to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
Stars: ✭ 295 (+333.82%)
Mutual labels:  google, translate
Google Translate
🈯 A Node.JS library to consume Google Translate API for free.
Stars: ✭ 152 (+123.53%)
Mutual labels:  google, translate
Dynamictranslator
Instant translation application for windows in .NET 🎪
Stars: ✭ 131 (+92.65%)
Mutual labels:  google, translate
Php Google Translate Free
PHP class to use the Google Translator API for free.
Stars: ✭ 182 (+167.65%)
Mutual labels:  google, translate
Google Translate
翻译工具 支持网页翻译和文本翻译
Stars: ✭ 356 (+423.53%)
Mutual labels:  google, translate
Mtrans
Multi-source Translation
Stars: ✭ 711 (+945.59%)
Mutual labels:  google, translate
Pega Helm Charts
Orchestrate a Pega Platform™ deployment by using Docker, Kubernetes, and Helm to take advantage of Pega Platform Cloud Choice flexibility.
Stars: ✭ 58 (-14.71%)
Mutual labels:  google
Google Chinese Handwriting Ime
Written in Electron for Linux.
Stars: ✭ 58 (-14.71%)
Mutual labels:  google
Gradle Gae Plugin
Gradle plugin that provides tasks for uploading, running and managing Google App Engine projects
Stars: ✭ 62 (-8.82%)
Mutual labels:  google
Google Translate Php
🌐 Free Google Translate API PHP Package. Translates totally free of charge.
Stars: ✭ 1,131 (+1563.24%)
Mutual labels:  translate
Google Auth Library Nodejs
🔑 Google Auth Library for Node.js
Stars: ✭ 1,094 (+1508.82%)
Mutual labels:  google
Complete Placement Preparation
This repository consists of all the material required for cracking the coding rounds and technical interviews during placements.
Stars: ✭ 1,114 (+1538.24%)
Mutual labels:  google
Netcore Postgres Oauth Boiler
A basic .NET Core website boilerplate using PostgreSQL for storage, Adminer for db management, Let's Encrypt for SSL certificates and NGINX for routing.
Stars: ✭ 57 (-16.18%)
Mutual labels:  google
Laravel Google Ads
Google Ads API for Laravel
Stars: ✭ 56 (-17.65%)
Mutual labels:  google
Espresso
🚚 Espresso is an express delivery tracking app designed with Material Design style, built on MVP(Model-View-Presenter) architecture with RxJava2, Retrofit2, Realm database and ZXing
Stars: ✭ 1,084 (+1494.12%)
Mutual labels:  google
Pi Hole Pivpn On Google Compute Engine Free Tier With Full Tunnel And Split Tunnel Openvpn Configs
Run your own privacy-first ad blocking service in the cloud for free on Google Cloud Services.
Stars: ✭ 1,141 (+1577.94%)
Mutual labels:  google

translator

Free Google Translate API for Dart

See it in pub: https://pub.dartlang.org/packages/translator
and GitHub: https://github.com/gabrielpacheco23/google-translator

Usage

void main() async {
  final translator = GoogleTranslator();

  final input = "Здравствуйте. Ты в порядке?";

  translator.translate(input, from: 'ru', to: 'en').then(print);
  // prints Hello. Are you okay?
  
  var translation = await translator.translate("Dart is very cool!", to: 'pl');
  print(translation);
  // prints Dart jest bardzo fajny!

  print(await "example".translate(to: 'pt'));
  // prints exemplo
}

 

Using translate method passing the args from and to designates the language from text you're typing and the language to be translated

translator.translate("I love Brazil!", from: 'en', to: 'pt').then((s) {
    print(s);
  }); 
  // prints Eu amo o Brasil!

 

or you can omit from language and it'll auto-detect the language of source text

translator.translate("Hello", to: 'es').then(print);
// prints Hola

 

and also pass the value to a var using await

var translation = await translator.translate("I would buy a car, if I had money.", from: 'en', to: 'it');
print(translation);
// prints Vorrei comprare una macchina, se avessi i soldi.

 

The returned value is a Translation object which holds the translation stuff

var translation = await translator.translate('Translation', from: 'en', to: 'es');
print('${translation.source} (${translation.sourceLanguage}) == ${translation.text} (${translation.targetLanguage})');

// prints Translation (English) == Traducción (Spanish)

 

You can use the extension method directly on the string too

print(await "example".translate(to: 'pt'));
// prints exemplo

 

There is translateAndPrint method that prints directly

translator.translateAndPrint("This means 'testing' in chinese", to: 'zh-cn');
// prints 这意味着用中文'测试'

 

API

For full API docs take a look at https://pub.dartlang.org/documentation/translator/latest/

License

MIT License

Copyright © 2021 Gabriel Pacheco

Disclaimer

This package is developed for educational purposes only. Do not depend on this package as it may break anytime as it is based on crawling the Google Translate website. Consider buying Official Google Translate API for other types of usage.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].