Amazon Translate removes the complexity of building translation capabilities into your applications with a simple API call. This makes it easy to localize an application, or process multilingual data within your existing workflows. The neural translation engine is always learning from new and expanded datasets to produce more accurate and fluent translations for a wide range of use cases.
Begin by adding the AWS keys to the vault storage by using the MY SECRETS
feature from within the blocks editor. The block will need the AWS_access_key and AWS_secret_key values.
This PubNub Functions listens for all chats and allows translation even in private chats.
To trigger translation, event payload should contain 'translate' field in it with following keys: - location - name of key in event payload, which contain data for translation - source - code of language from which passed message should be translated - target - code of language to which passed message should be translated
{ "data": { "translate": { "text": "Hello", "source": "en", "target": "es" } } }
{ "data": { "translate": { "text": "Hello", "source": "en", "target": "es" }, "text": "Hola" } }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Use natural language processing (NLP) to find insights and relationships in...
Learn more