Skip to content

fix documentation for language translation #381

@shikida

Description

@shikida

https://github.com/watson-developer-cloud/java-sdk#language-translator says

LanguageTranslator service = new LanguageTranslator();
service.setUsernameAndPassword("<username>", "<password>");

TranslationResult translationResult = service.translate(
  "hello", Language.ENGLISH, Language.SPANISH)
  .execute();

System.out.println(translationResult);

it should say

        LanguageTranslation service = new LanguageTranslation();
        service.setUsernameAndPassword("<username>", "<password>");

        TranslationResult translationResult = service.translate(
          "hello", Language.ENGLISH, Language.SPANISH)
          .execute();

and I think the TOC is wrong too, the link is not working

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions