Skip to content

Commit

Permalink
Fixed Minor issues with Translate API
Browse files Browse the repository at this point in the history
Also updated README.md to include Translate API and added information at
top of definition file.
  • Loading branch information
sgtfrankieboy committed Jul 7, 2013
1 parent e84da7a commit 9048007
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
16 changes: 8 additions & 8 deletions gapi.translate/gapi.translate.d.ts
Original file line number Diff line number Diff line change
@@ -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 {

Expand All @@ -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.
*/
Expand Down Expand Up @@ -52,15 +52,15 @@ declare module gapi.client.language {
/**
* The text to translate
*/
q: string;
q: string[];
/**
* The target language into which the text should be translated
*/
target: string;
/**
* 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
*/
Expand Down

0 comments on commit 9048007

Please sign in to comment.