Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- translateService :: Service
- data TranslationsResource
- translationsResource :: TranslationsResource
- trDetectedSourceLanguage :: Lens' TranslationsResource (Maybe Text)
- trTranslatedText :: Lens' TranslationsResource (Maybe Text)
- data DetectionsListResponse
- detectionsListResponse :: DetectionsListResponse
- dlrDetections :: Lens' DetectionsListResponse [[DetectionsResourceItem]]
- data LanguagesListResponse
- languagesListResponse :: LanguagesListResponse
- llrLanguages :: Lens' LanguagesListResponse [LanguagesResource]
- data DetectionsResourceItem
- detectionsResourceItem :: DetectionsResourceItem
- driConfidence :: Lens' DetectionsResourceItem (Maybe Double)
- driIsReliable :: Lens' DetectionsResourceItem (Maybe Bool)
- driLanguage :: Lens' DetectionsResourceItem (Maybe Text)
- data LanguagesResource
- languagesResource :: LanguagesResource
- lrName :: Lens' LanguagesResource (Maybe Text)
- lrLanguage :: Lens' LanguagesResource (Maybe Text)
- data TranslationsListFormat
- data TranslationsListResponse
- translationsListResponse :: TranslationsListResponse
- tlrTranslations :: Lens' TranslationsListResponse [TranslationsResource]
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.
trTranslatedText :: Lens' TranslationsResource (Maybe Text) Source
The translation.
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.
driLanguage :: Lens' DetectionsResourceItem (Maybe Text) Source
The language we detect
LanguagesResource
data LanguagesResource Source
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.
lrLanguage :: Lens' LanguagesResource (Maybe Text) Source
The language code.
TranslationsListFormat
data TranslationsListFormat Source
The format of the text
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