Oracle Magazine, July/August 2018
Mobile APPLICATION DEVELOPER 77 Insert an additional property translate below the keepTurn property and set its ORACLE MAGAZINE JULY AUGUST 2018 64 value to false 78 Navigate to the askSize state which should be on line 149 or close to it 79 Insert a new property translate with a value of false into the System List component properties See the code fragment below with the translate property highlighted in bold askSize component System List properties prompt What size do you like your pizza in options pizzaSize type enumValues variable pizzaSize translate false nlpResultVariable iResult 80 Click the tester icon 81 In the Message field enter Kann ich bitte die Speisekarte sehen and click Send Note The pizza bot enables you to ask for the menu directly without saying Hallo up front Of course starting your bot conversation with Hallo does still work 82 Choose a pizza and then a pizza size Note The pizza size now shows in English small medium large This is because you set the translate property to false For this sample small medium and large are considered business terms that should not be translated
You must have JavaScript enabled to view digital editions.