Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Translate

import { Translate } from "https://aws-api.deno.dev/v0.4/services/translate.ts?docs=full";
class Translate {
constructor(apiFactory: client.ApiFactory);
async createParallelData(params: CreateParallelDataRequest, opts?: client.RequestOptions): Promise<CreateParallelDataResponse>;
async deleteParallelData(params: DeleteParallelDataRequest, opts?: client.RequestOptions): Promise<DeleteParallelDataResponse>;
async deleteTerminology(params: DeleteTerminologyRequest, opts?: client.RequestOptions): Promise<void>;
async describeTextTranslationJob(params: DescribeTextTranslationJobRequest, opts?: client.RequestOptions): Promise<DescribeTextTranslationJobResponse>;
async getParallelData(params: GetParallelDataRequest, opts?: client.RequestOptions): Promise<GetParallelDataResponse>;
async getTerminology(params: GetTerminologyRequest, opts?: client.RequestOptions): Promise<GetTerminologyResponse>;
async importTerminology(params: ImportTerminologyRequest, opts?: client.RequestOptions): Promise<ImportTerminologyResponse>;
async listLanguages(params?: ListLanguagesRequest, opts?: client.RequestOptions): Promise<ListLanguagesResponse>;
async listParallelData(params?: ListParallelDataRequest, opts?: client.RequestOptions): Promise<ListParallelDataResponse>;
async listTagsForResource(params: ListTagsForResourceRequest, opts?: client.RequestOptions): Promise<ListTagsForResourceResponse>;
async listTerminologies(params?: ListTerminologiesRequest, opts?: client.RequestOptions): Promise<ListTerminologiesResponse>;
async listTextTranslationJobs(params?: ListTextTranslationJobsRequest, opts?: client.RequestOptions): Promise<ListTextTranslationJobsResponse>;
async startTextTranslationJob(params: StartTextTranslationJobRequest, opts?: client.RequestOptions): Promise<StartTextTranslationJobResponse>;
async stopTextTranslationJob(params: StopTextTranslationJobRequest, opts?: client.RequestOptions): Promise<StopTextTranslationJobResponse>;
async tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async translateText(params: TranslateTextRequest, opts?: client.RequestOptions): Promise<TranslateTextResponse>;
async untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async updateParallelData(params: UpdateParallelDataRequest, opts?: client.RequestOptions): Promise<UpdateParallelDataResponse>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new Translate(apiFactory: client.ApiFactory)
[src]

§Methods

§

Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples that show how you want segments of text to be translated. By adding parallel data, you can influence the style, tone, and word choice in your translation output.

§

Deletes a parallel data resource in Amazon Translate.

§
deleteTerminology(params: DeleteTerminologyRequest, opts?: client.RequestOptions): Promise<void>
[src]

A synchronous action that deletes a custom terminology.

§

Gets the properties associated with an asynchronous batch translation job including name, ID, status, source and target languages, input/output S3 buckets, and so on.

§

Provides information about a parallel data resource.

§

Retrieves a custom terminology.

§

Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.

If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.

§

Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.

§

Provides a list of your parallel data resources in Amazon Translate.

§

Lists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources.

§

Provides a list of custom terminologies associated with your account.

§

Gets a list of the batch translation jobs that you have submitted.

§

Starts an asynchronous batch translation job. Use batch translation jobs to translate large volumes of text across multiple documents at once. For batch translation, you can input documents with different source languages (specify auto as the source language). You can specify one or more target languages. Batch translation translates each input document into each of the target languages. For more information, see Asynchronous batch processing.

Batch translation jobs can be described with the "DescribeTextTranslationJob" operation, listed with the "ListTextTranslationJobs" operation, and stopped with the "StopTextTranslationJob" operation.

§

Stops an asynchronous batch translation job that is in progress.

If the job's state is IN_PROGRESS, the job will be marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state. Otherwise, the job is put into the STOPPED state.

Asynchronous batch translation jobs are started with the "StartTextTranslationJob" operation. You can use the "DescribeTextTranslationJob" or "ListTextTranslationJobs" operations to get a batch translation job's JobId.

§
tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see Tagging your resources.

§

Translates input text from the source language to the target language. For a list of available languages and language codes, see Supported languages.

§
untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources.

§

Updates a previously created parallel data resource by importing a new input file from Amazon S3.

§Static Properties