jsericksk / simple-translator

Simple translator that gets results from the basic version of Google Translate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple translator made in Java.

It works quite simply: a request is made to the Google Translate site in its basic version passing the useful parameters: the language of the original text, the language for the text to be translated and the text itself. After obtaining the source code of the returned page, the translation is extracted.

Quick Guide

  • To see which languages are available, go to the Language class.
  • You can see how the translation process is performed in the Translator class.

An example of expected output:

Enter text to translate:
Olá, Mundo!
Translated text: Hello World!

As it is quite simple, it is quite easy to adapt to other languages or use for other purposes. Feel free to contribute and use.

About

Simple translator that gets results from the basic version of Google Translate.


Languages

Language:Java 100.0%