资 源 简 介
Overview
A simple to use Java API for performing translations from one language to another.
This implementation uses the Bing (Microsoft) Translation API. Specifically, translations are performed using HTTP POST requests and XML. Strings of up to 10,240 characters can be translated.
The only method implemented currently is the translateArray method.
The method takes as input an array of Strings (up to 10,240 chars each) and returns an array of translated Strings.
Requirements
Sign up here for a Bing API key.
Grab the JAR from the downloads section.
Quick Start
```
final String apiKey = YOURAPIKEY;
final Translator translator = new Translator(apiKey);
final String[] englishTexts = {"Hello world. Hello all!", "And Goodbye!"};
final String[] spanishTranslation = translator.tr