Skip to content

Confusing Translation sample code #2389

@shinfan

Description

@shinfan
Translation translation = translate.translate(
    "World",
    TranslateOption.sourceLanguage("en"),
    TranslateOption.targetLanguage(detectedLanguage));

It makes more sense to me if the source language is assigned with the detected language instead.

Metadata

Metadata

Assignees

Labels

api: translationIssues related to the Cloud Translation API API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions