From 9048007fd39d8c4b20b5296c7a2381be29c2755e Mon Sep 17 00:00:00 2001 From: sgtfrankieboy Date: Sun, 7 Jul 2013 11:42:45 +0200 Subject: [PATCH] Fixed Minor issues with Translate API Also updated README.md to include Translate API and added information at top of definition file. --- README.md | 1 + gapi.translate/gapi.translate.d.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b5aa9b464..5121d05f3 100755 --- a/README.md +++ b/README.md @@ -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)) diff --git a/gapi.translate/gapi.translate.d.ts b/gapi.translate/gapi.translate.d.ts index e1d43fed8..e1f4d10f7 100644 --- a/gapi.translate/gapi.translate.d.ts +++ b/gapi.translate/gapi.translate.d.ts @@ -1,9 +1,9 @@ - -/// +// Type definitions for Google Translate API +// Project: https://developers.google.com/translate/ +// Definitions by: Frank M +// Definitions: https://github.com/borisyankov/DefinitelyTyped - /** - * - */ +/// 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 */