Skip to content

Java wrapper for the Yandex.Translate machine translation web service API

License

Notifications You must be signed in to change notification settings

freakwave666/yandex-translator-java-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#yandex-translator-java-api


Provides a Java wrapper around the Yandex machine translation web service API.

Currently, only the services for translating a single string and detecting the language of a single string are implemented in this API. The translate/detect services are not implemented for an array of strings, and the getLangs service is not implemented.

This project was adapted from the microsoft-translator-java-api project by Jonathan Griggs.

Requires

Quickstart

import com.rmtheis.yandtran.language.Language;
import com.rmtheis.yandtran.translate.Translate;

public class test {
    public static void main(String[] args) throws Exception {
        Translate.setKey("[Put your API Key here]");

        String translatedText = Translate.execute("Hola, mundo!", Language.SPANISH, Language.ENGLISH);

        System.out.println(translatedText);
    }
}

License

This project is licensed under the Apache License, Version 2.0

About

Java wrapper for the Yandex.Translate machine translation web service API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published