gogol-translate-0.0.1: Google Translate SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Translate.Types

Contents

Description

 

Synopsis

Service Configuration

translateService :: Service Source

Default request referring to version v2 of the Translate API. This contains the host and root path used as a starting point for constructing service requests.

TranslationsResource

translationsResource :: TranslationsResource Source

Creates a value of TranslationsResource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

trDetectedSourceLanguage :: Lens' TranslationsResource (Maybe Text) Source

Detected source language if source parameter is unspecified.

DetectionsListResponse

detectionsListResponse :: DetectionsListResponse Source

Creates a value of DetectionsListResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dlrDetections :: Lens' DetectionsListResponse [[DetectionsResourceItem]] Source

A detections contains detection results of several text

LanguagesListResponse

languagesListResponse :: LanguagesListResponse Source

Creates a value of LanguagesListResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

llrLanguages :: Lens' LanguagesListResponse [LanguagesResource] Source

List of source/target languages supported by the translation API. If target parameter is unspecified, the list is sorted by the ASCII code point order of the language code. If target parameter is specified, the list is sorted by the collation order of the language name in the target language.

DetectionsResourceItem

detectionsResourceItem :: DetectionsResourceItem Source

Creates a value of DetectionsResourceItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

driConfidence :: Lens' DetectionsResourceItem (Maybe Double) Source

The confidence of the detection resul of this language.

driIsReliable :: Lens' DetectionsResourceItem (Maybe Bool) Source

A boolean to indicate is the language detection result reliable.

LanguagesResource

languagesResource :: LanguagesResource Source

Creates a value of LanguagesResource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

lrName :: Lens' LanguagesResource (Maybe Text) Source

The localized name of the language if target parameter is given.

TranslationsListFormat

TranslationsListResponse

translationsListResponse :: TranslationsListResponse Source

Creates a value of TranslationsListResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tlrTranslations :: Lens' TranslationsListResponse [TranslationsResource] Source

Translations contains list of translation results of given text