SAP UI5 translation app powered by SAP Leonardo Machine Learning API.
To translate a text:
- Type a text in English on the left box.
- Select a target language from the dropdown on the right.
- Click the button [ Translate ].
- See the translated text on the right.
- SAP Cloud Platform trial account.
To connect SAP Cloud Platform to the SAP API's sandbox system, you need to create a destination on your account.
- Open the SAP Cloud Platform Cockpit.
- Navigate to the Destinations page.
- Add a new entry with the following parameters:
- Name: sapui5ml-api
- Type: HTTP
- Description: SAP Leonardo Machine Learning APIs
- URL: https://sandbox.api.sap.com/ml
- Proxy Type: Internet
- Authentication: NoAuthentication
- Additional parameters:
- WebIDEEnabled = true
- Mark the checkbox "Use default JDK truststore".
- Click [Save].
In order to consume the SAP API service, you may provide an API key for authentication and parse it on the requests' header.
- Go to the Translation service official page to obtain your API key.
- Create a file onto the folder
/webapp/model
calledml-api.json
. - Paste the following content into the new file:
{
"APIKey":"<<< YOUR_API_KEY >>>"
}