Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Use complete string for localization-readiness #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions sdk/webhooks/ActionsOnGoogleFulfillment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ app.handle('greeting', conv => {
conv.add(message);
});


app.handle('unavailable_options', conv => {
const option = conv.intent.params.chosenUnavailableOption.original;
let option = conv.intent.params.chosenUnavailableOption.original;
const optionKey = conv.intent.params.chosenUnavailableOption.resolved;
let message = 'I have seen the future and ';
if(optionsNeedA.has(optionKey)){
message = message + 'a';
if (optionsNeedA.has(optionKey)){
option = `a ${option}`;
}
message = message + ` ${option} will not aid you on your journey. `;
const message = `I have seen the future and ${option} will not aid you on your journey.`;
conv.add(message);
});

Expand Down