Fixed Minor issues with Translate API

Also updated README.md to include Translate API and added information at
top of definition file.
This commit is contained in:
sgtfrankieboy
2013-07-07 11:42:45 +02:00
parent e84da7a230
commit 9048007fd3
2 changed files with 9 additions and 8 deletions
+1
View File
@@ -72,6 +72,7 @@ List of Definitions
* [Google App Engine Channel API](https://developers.google.com/appengine/docs/java/channel/javascript) (by [vvakame](https://github.com/vvakame))
* [GoogleMaps](https://developers.google.com/maps/) (by [Esben Nepper](https://github.com/eNepper))
* [Google Geolocation](https://code.google.com/p/geo-location-javascript/) (by [Vincent Bortone](https://github.com/vbortone))
* [Google Translate API](https://developers.google.com/translate/) (by [Frank M](https://github.com/sgtfrankieboy))
* [Google Url Shortener](https://developers.google.com/url-shortener/) (by [Frank M](https://github.com/sgtfrankieboy))
* [Hammer.js](http://eightmedia.github.com/hammer.js/) (by [Boris Yankov](https://github.com/borisyankov))
* [Handlebars](http://handlebarsjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
+8 -8
View File
@@ -1,9 +1,9 @@
///<reference path="../gapi/gapi.d.ts" />
// Type definitions for Google Translate API
// Project: https://developers.google.com/translate/
// Definitions by: Frank M <https://github.com/sgtfrankieboy>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/**
*
*/
/// <reference path="../gapi/gapi.d.ts" />
declare module gapi.client.language {
@@ -16,7 +16,7 @@ declare module gapi.client.language {
/**
* The text to detect
*/
q: string;
q: string[];
/**
* Selector specifying which fields to include in a partial response.
*/
@@ -52,7 +52,7 @@ declare module gapi.client.language {
/**
* The text to translate
*/
q: string;
q: string[];
/**
* The target language into which the text should be translated
*/
@@ -60,7 +60,7 @@ declare module gapi.client.language {
/**
* The customization id for translate
*/
cid?: string;
cid?: string[];
/**
* This optional parameter allows you to indicate that the text to be translated is either plain-text or HTML. A value of html indicates HTML and a value of text indicates plain-text
*/