🌐 Simple PhantomJS Google Translator Implementation (Selenium based)
Requires PhantomJS installed and exposed in PATH
variable.
Download the latest JAR or grab via Maven:
<dependency>
<groupId>org.brunocvcunha.phantranslator</groupId>
<artifactId>phantranslator</artifactId>
<version>1.0</version>
</dependency>
or Gradle:
compile 'org.brunocvcunha.phantranslator:phantranslator:1.0'
Snapshots of the development version are available in Sonatype's snapshots
repository.
phantranslator requires at minimum Java 6.
PhantranslatorExecutor executor = new PhantranslatorExecutor("en", "pt");
String translated = executor.getTranslation("useful library"); // returns 'biblioteca útil'