This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 8b7d70c12a52ab47f2f4fa5add1564e4f009a629
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Sep 12 10:57:32 2019 +0200

    Camel-AWS Translate: Docs improvement
---
 .../src/main/docs/aws-translate-component.adoc               | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git 
a/components/camel-aws-translate/src/main/docs/aws-translate-component.adoc 
b/components/camel-aws-translate/src/main/docs/aws-translate-component.adoc
index 0416d09..a91c363 100644
--- a/components/camel-aws-translate/src/main/docs/aws-translate-component.adoc
+++ b/components/camel-aws-translate/src/main/docs/aws-translate-component.adoc
@@ -156,6 +156,18 @@ The component is capable of detecting the presence of an 
AmazonTranslate bean in
 If it's the only instance of that type it will be used as client and you won't 
have to define it as uri parameter.
 This may be really useful for smarter configuration of the endpoint.
 
+== Translate Text example
+
+------------------------------------------------------------------------------------------------------
+from("direct:start")
+  .setHeader(TranslateConstants.SOURCE_LANGUAGE, TranslateLanguageEnum.ITALIAN)
+  .setHeader(TranslateConstants.TARGET_LANGUAGE, TranslateLanguageEnum.GERMAN)
+  .setBody("Ciao")
+  
.to("aws-translate://test?translateClient=#amazonTranslateClient&operation=translateText");
+------------------------------------------------------------------------------------------------------
+
+As result you'll get an exchange containing the translated text.
+
 Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.

Reply via email to