From 39f3ab38800051aac7c84030c36e7d226945be13 Mon Sep 17 00:00:00 2001 From: Luan Lima Date: Sun, 12 Jul 2020 12:41:19 -0300 Subject: [PATCH 01/10] support pt-BR module 2 and 3 --- 02/lambda/index.js | 8 +- 02/models/pt-BR.json | 43 +++++ 03/lambda/index.js | 13 ++ 03/models/pt-BR.json | 407 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 467 insertions(+), 4 deletions(-) create mode 100644 02/models/pt-BR.json create mode 100644 03/models/pt-BR.json diff --git a/02/lambda/index.js b/02/lambda/index.js index cbc2840..fa1445f 100644 --- a/02/lambda/index.js +++ b/02/lambda/index.js @@ -52,15 +52,15 @@ const languageStrings = { ERROR_MSG: 'Désolé, je n\'ai pas compris. Pouvez-vous reformuler?' } }, - 'pt':{ + pt:{ translation: { - WELCOME_MSG: 'Olá, você pode dizer olá ou ajuda. Quais deles voce deseja testar?', - HELLO_MSG: 'Olá!', + WELCOME_MSG: 'Bem vindo, você pode dizer olá ou ajuda. Quais deles você deseja testar?', + HELLO_MSG: 'Olá mundo!', HELP_MSG: 'Você pode dizer olá para mim! Como posso ajudar?', GOODBYE_MSG: 'Até logo!', REFLECTOR_MSG: 'Você acaba de iniciar {{intent}}', FALLBACK_MSG: 'Desculpe, não sei nada sobre isso. Por favor tente novamente.', - ERROR_MSG: 'Desculpe, occoreu um erro. Por favor tente novamtne.' + ERROR_MSG: 'Desculpe, occoreu um erro. Por favor tente novamente.' } } } diff --git a/02/models/pt-BR.json b/02/models/pt-BR.json new file mode 100644 index 0000000..007b842 --- /dev/null +++ b/02/models/pt-BR.json @@ -0,0 +1,43 @@ +{ + "interactionModel": { + "languageModel": { + "invocationName": "olá mundo", + "intents": [ + { + "name": "AMAZON.CancelIntent", + "samples": [] + }, + { + "name": "AMAZON.HelpIntent", + "samples": [] + }, + { + "name": "AMAZON.StopIntent", + "samples": [] + }, + { + "name": "HelloWorldIntent", + "slots": [], + "samples": [ + "olá", + "como vai você", + "diga oi mundo", + "diga oi", + "oi", + "diga olá mundo", + "diga olá" + ] + }, + { + "name": "AMAZON.NavigateHomeIntent", + "samples": [] + }, + { + "name": "AMAZON.FallbackIntent", + "samples": [] + } + ], + "types": [] + } + } +} \ No newline at end of file diff --git a/03/lambda/index.js b/03/lambda/index.js index 20e1340..df7cdf9 100644 --- a/03/lambda/index.js +++ b/03/lambda/index.js @@ -56,6 +56,19 @@ const languageStrings = { ERROR_MSG: 'Désolé, je n\'ai pas compris. Pouvez-vous reformuler?' } }, + pt:{ + translation: { + WELCOME_MSG: 'Bem vindo, você pode dizer olá ou ajuda. Quais deles você deseja testar?', + REGISTER_MSG: 'Seu aniversário é no dia {{day}} de {{month}} de {{year}}.', + REJECTED_MSG: 'Sem problema. Fale a daa novamente para que eu possa corrigir.', + HELLO_MSG: 'Olá mundo!', + HELP_MSG: 'Você pode dizer olá para mim! Como posso ajudar?', + GOODBYE_MSG: 'Até logo!', + REFLECTOR_MSG: 'Você acaba de iniciar {{intent}}', + FALLBACK_MSG: 'Desculpe, não sei nada sobre isso. Por favor tente novamente.', + ERROR_MSG: 'Desculpe, occoreu um erro. Por favor tente novamente.' + } + }, "fr-CA": { translation: { WELCOME_MSG: 'Bienvenue sur la Skill des fêtes! ', diff --git a/03/models/pt-BR.json b/03/models/pt-BR.json new file mode 100644 index 0000000..7e1f758 --- /dev/null +++ b/03/models/pt-BR.json @@ -0,0 +1,407 @@ +{ + "interactionModel": { + "languageModel": { + "invocationName": "feliz aniversário", + "intents": [ + { + "name": "AMAZON.CancelIntent", + "samples": [] + }, + { + "name": "AMAZON.HelpIntent", + "samples": [] + }, + { + "name": "AMAZON.StopIntent", + "samples": [] + }, + { + "name": "RegisterBirthdayIntent", + "slots": [ + { + "name": "day", + "type": "AMAZON.Ordinal", + "samples": [ + "{day}", + "no dia {day}", + "dia {day}", + "{day} de {month}", + "em {day} de {month} de {year}", + "{day} {month} {year}", + "no dia {day} de {month} de {year}", + "em {day} de {month} de {year}" + ] + }, + { + "name": "month", + "type": "MonthType", + "samples": [ + "{month}", + "em {month}", + "em {month} de {year}", + "{day} de {month} ", + "{day} {month} {year}", + "no dia {day} de {month} de {year}", + "em {day} de {month} de {year}" + ] + }, + { + "name": "year", + "type": "AMAZON.FOUR_DIGIT_NUMBER", + "samples": [ + "{year}", + "eu nasci em {year}", + "eu nasci no ano de {year}", + "ano de {year}", + "em {year}", + "no dia {day} de {month} de {year}", + "em {day} de {month} de {year}" + ] + } + ], + "samples": [ + "{day}", + "{day} de {month}", + "{day} {month} {year}", + "{day} de {month} de {year}", + "{day} {month}", + "{day} de {month} ", + "{month}", + "{month} {year}", + "{month} de {year}", + "eu nasci em {year}", + "eu nasci no dia {day} de {month} de {year}", + "eu nasci no dia {day} de {month}", + "para o dia {day} de {month}", + "para {day} de {month}", + "para o dia {day} de {month} de {year}", + "para {day} de {month} de {year}", + "em {day}", + "em {month}", + "em {year}", + "em {day} de {month} de {year}", + "no dia {day}", + "no mês de {month}", + "no ano de {year}", + "no dia {day} de {month}", + "no dia {day} de {month} de {year}", + "meu aniversário é no dia {day} de {month}", + "meu aniversário é no dia {day} de {month} de {year}", + "nasci em {year}", + "a data do meu aniversário é no dia {day} de {month} de {year}", + "registre meu aniversário", + "grave meu aniversário", + "lembre do meu aniversário", + "registre a data do meu aniversário" + ] + }, + { + "name": "AMAZON.NavigateHomeIntent", + "samples": [] + }, + { + "name": "AMAZON.FallbackIntent", + "samples": [] + } + ], + "types": [ + { + "name": "MonthType", + "values": [ + { + "id": "12", + "name": { + "value": "dezembro" + } + }, + { + "id": "11", + "name": { + "value": "novembro" + } + }, + { + "id": "10", + "name": { + "value": "outubro" + } + }, + { + "id": "09", + "name": { + "value": "setembro" + } + }, + { + "id": "08", + "name": { + "value": "agosto" + } + }, + { + "id": "07", + "name": { + "value": "julho" + } + }, + { + "id": "06", + "name": { + "value": "junho" + } + }, + { + "id": "05", + "name": { + "value": "maio" + } + }, + { + "id": "04", + "name": { + "value": "abril" + } + }, + { + "id": "03", + "name": { + "value": "março" + } + }, + { + "id": "02", + "name": { + "value": "fevereiro" + } + }, + { + "id": "01", + "name": { + "value": "janeiro", + "synonyms": [ + "primeiro mês do ano" + ] + } + } + ] + } + ] + }, + "dialog": { + "intents": [ + { + "name": "RegisterBirthdayIntent", + "confirmationRequired": true, + "prompts": { + "confirmation": "Confirm.Intent.746177723927" + }, + "slots": [ + { + "name": "day", + "type": "AMAZON.Ordinal", + "confirmationRequired": false, + "elicitationRequired": true, + "prompts": { + "elicitation": "Elicit.Slot.653974572406.1040382425372" + }, + "validations": [ + { + "type": "isInSet", + "prompt": "Slot.Validation.190694681136.1424851421300.1030431910159", + "values": [ + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "29", + "30", + "31", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "20", + "21" + ] + } + ] + }, + { + "name": "month", + "type": "MonthType", + "confirmationRequired": false, + "elicitationRequired": true, + "prompts": { + "elicitation": "Elicit.Slot.282358190483.487594834711" + }, + "validations": [ + { + "type": "hasEntityResolutionMatch", + "prompt": "Slot.Validation.190694681136.463018349705.1461889218555" + } + ] + }, + { + "name": "year", + "type": "AMAZON.FOUR_DIGIT_NUMBER", + "confirmationRequired": false, + "elicitationRequired": true, + "prompts": { + "elicitation": "Elicit.Slot.1253554922892.1358447173887" + }, + "validations": [ + { + "type": "isGreaterThan", + "prompt": "Slot.Validation.1253554922892.1358447173887.1026742417738", + "value": "1900" + }, + { + "type": "isLessThan", + "prompt": "Slot.Validation.1253554922892.1358447173887.176185058059", + "value": "2018" + } + ] + } + ] + } + ], + "delegationStrategy": "ALWAYS" + }, + "prompts": [ + { + "id": "Elicit.Slot.653974572406.1040382425372", + "variations": [ + { + "type": "PlainText", + "value": "Certo. Eu ouvi dizer que seu aniversário é no mês de {month}, mas em que dia exatamente?" + }, + { + "type": "PlainText", + "value": "Quando é o seu aniversário?" + }, + { + "type": "PlainText", + "value": "certo no ano de {year} , mas qual data?" + }, + { + "type": "PlainText", + "value": "Qual o dia do seu aniversário?" + } + ] + }, + { + "id": "Elicit.Slot.282358190483.487594834711", + "variations": [ + { + "type": "PlainText", + "value": "Por favor, me diga em que mês é o seu aniversário" + }, + { + "type": "PlainText", + "value": "Certo, mas em que mês exatamente?" + }, + { + "type": "PlainText", + "value": "Em que mês é o seu aniversário?" + }, + { + "type": "PlainText", + "value": "Certo, no dia {day}. Mas em que mês?" + } + ] + }, + { + "id": "Slot.Validation.190694681136.1424851421300.1030431910159", + "variations": [ + { + "type": "PlainText", + "value": "Por favor, dia uma data válida" + } + ] + }, + { + "id": "Slot.Validation.190694681136.463018349705.1461889218555", + "variations": [ + { + "type": "PlainText", + "value": "Por favor, tente novamente com um mês válido" + } + ] + }, + { + "id": "Elicit.Slot.1253554922892.1358447173887", + "variations": [ + { + "type": "PlainText", + "value": " você é do mês de {month} de qual ano?" + }, + { + "type": "PlainText", + "value": " você é de {month} de qual ano?" + }, + { + "type": "PlainText", + "value": "Certo. {day} de {month}. De qual ano?" + }, + { + "type": "PlainText", + "value": "Por favor, me diga em que ano você nasceu" + }, + { + "type": "PlainText", + "value": "Em que ano você nasceu" + } + ] + }, + { + "id": "Slot.Validation.1253554922892.1358447173887.1026742417738", + "variations": [ + { + "type": "PlainText", + "value": "É velho demais para ser verdade. Por favor, tente novamente" + } + ] + }, + { + "id": "Slot.Validation.1253554922892.1358447173887.176185058059", + "variations": [ + { + "type": "PlainText", + "value": "É jovem demais para ser verdade. Por favor, tente novamente" + } + ] + }, + { + "id": "Confirm.Intent.746177723927", + "variations": [ + { + "type": "PlainText", + "value": "em {day} de {month} de {year} , estou correta?" + }, + { + "type": "PlainText", + "value": "Tem certeza de que deseja registrar {day} de {month} de {year} ?" + } + ] + } + ] + } +} \ No newline at end of file From 8634ac48fb7a31eeeffbc64b8354236574b5e1bb Mon Sep 17 00:00:00 2001 From: Luan Lima Date: Sun, 12 Jul 2020 13:42:52 -0300 Subject: [PATCH 02/10] support pt-BR module 4 --- 03/lambda/index.js | 2 +- 03/models/pt-BR.json | 3 + 04/lambda/localisation.js | 21 ++ 04/models/pt-BR.json | 433 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 458 insertions(+), 1 deletion(-) create mode 100644 04/models/pt-BR.json diff --git a/03/lambda/index.js b/03/lambda/index.js index df7cdf9..1ad303e 100644 --- a/03/lambda/index.js +++ b/03/lambda/index.js @@ -60,7 +60,7 @@ const languageStrings = { translation: { WELCOME_MSG: 'Bem vindo, você pode dizer olá ou ajuda. Quais deles você deseja testar?', REGISTER_MSG: 'Seu aniversário é no dia {{day}} de {{month}} de {{year}}.', - REJECTED_MSG: 'Sem problema. Fale a daa novamente para que eu possa corrigir.', + REJECTED_MSG: 'Sem problema. Fale a data novamente para que eu possa corrigir.', HELLO_MSG: 'Olá mundo!', HELP_MSG: 'Você pode dizer olá para mim! Como posso ajudar?', GOODBYE_MSG: 'Até logo!', diff --git a/03/models/pt-BR.json b/03/models/pt-BR.json index 7e1f758..b3abce2 100644 --- a/03/models/pt-BR.json +++ b/03/models/pt-BR.json @@ -28,6 +28,7 @@ "{day} de {month}", "em {day} de {month} de {year}", "{day} {month} {year}", + "{day} de {month} de {year}", "no dia {day} de {month} de {year}", "em {day} de {month} de {year}" ] @@ -41,6 +42,7 @@ "em {month} de {year}", "{day} de {month} ", "{day} {month} {year}", + "{day} de {month} de {year}", "no dia {day} de {month} de {year}", "em {day} de {month} de {year}" ] @@ -54,6 +56,7 @@ "eu nasci no ano de {year}", "ano de {year}", "em {year}", + "{day} de {month} de {year}", "no dia {day} de {month} de {year}", "em {day} de {month} de {year}" ] diff --git a/04/lambda/localisation.js b/04/lambda/localisation.js index 68c39ea..adb4a61 100644 --- a/04/lambda/localisation.js +++ b/04/lambda/localisation.js @@ -83,6 +83,27 @@ module.exports = { ERROR_MSG: 'Désolé, je n\'ai pas compris. Pouvez-vous reformuler? ' } }, + pt:{ + translation: { + WELCOME_MSG: 'Bem vindo ao feliz aniversário. Vamos nos divertir com seu aniversário', + WELCOME_BACK_MSG: 'Bem vindo novamente! ', + REJECTED_MSG: 'Sem problema. Fale a data novamente para que eu possa corrigir.', + DAYS_LEFT_MSG: `Falta {{count}} dia`, + DAYS_LEFT_MSG_plural: 'Faltam {{count}} dias ', + WILL_TURN_MSG: `até seu {{count}} ano. `, + WILL_TURN_MSG_plural: `até seus {{count}} anos. `, + GREET_MSG: `Feliz aniversário! Você tem agora {{count}} ano! `, + GREET_MSG_plural: `Feliz aniversário! Você tem agora {{count}} anos! `, + MISSING_MSG: `Parece que você ainda não me contou a data do seu aniversário.`, + POST_SAY_HELP_MSG: `Se você quiser alterar a data, tente dizer, registre meu aniversário. Ou apenas diga a data diretamente. O que você gostaria de fazer?`, + HELP_MSG: 'Lembro-me do seu aniversário se você me disser a data. Ou posso dizer-lhe os dias restantes até o seu próximo aniversário. Qual você gostaria de experimentar?', + REPROMPT_MSG: `Se você não tiver certeza do que fazer a seguir, tente pedir ajuda. Se você quiser sair, basta dizer para. O que você gostaria de fazer? `, + GOODBYE_MSG: 'Até logo!', + REFLECTOR_MSG: 'Você acaba de iniciar {{intent}}', + FALLBACK_MSG: 'Desculpe, não sei nada sobre isso. Por favor tente novamente.', + ERROR_MSG: 'Desculpe, occoreu um erro. Por favor tente novamente.', + } + }, "fr-CA" : { translation: { WELCOME_MSG: 'Bienvenue sur la Skill des fêtes! ', diff --git a/04/models/pt-BR.json b/04/models/pt-BR.json new file mode 100644 index 0000000..5d859f2 --- /dev/null +++ b/04/models/pt-BR.json @@ -0,0 +1,433 @@ +{ + "interactionModel": { + "languageModel": { + "invocationName": "feliz aniversário", + "intents": [ + { + "name": "AMAZON.CancelIntent", + "samples": [] + }, + { + "name": "AMAZON.HelpIntent", + "samples": [] + }, + { + "name": "AMAZON.StopIntent", + "samples": [] + }, + { + "name": "RegisterBirthdayIntent", + "slots": [ + { + "name": "day", + "type": "AMAZON.Ordinal", + "samples": [ + "{day}", + "no dia {day}", + "dia {day}", + "{day} de {month}", + "{day} de {month} de {year}", + "em {day} de {month} de {year}", + "{day} {month} {year}", + "no dia {day} de {month} de {year}", + "em {day} de {month} de {year}" + ] + }, + { + "name": "month", + "type": "MonthType", + "samples": [ + "{month}", + "em {month}", + "em {month} de {year}", + "{day} de {month} de {year}", + "{day} de {month} ", + "{day} {month} {year}", + "no dia {day} de {month} de {year}", + "em {day} de {month} de {year}" + ] + }, + { + "name": "year", + "type": "AMAZON.FOUR_DIGIT_NUMBER", + "samples": [ + "{year}", + "eu nasci em {year}", + "eu nasci no ano de {year}", + "ano de {year}", + "em {year}", + "{day} de {month} de {year}", + "no dia {day} de {month} de {year}", + "em {day} de {month} de {year}" + ] + } + ], + "samples": [ + "{day}", + "{day} de {month}", + "{day} {month} {year}", + "{day} de {month} de {year}", + "{day} {month}", + "{day} de {month} ", + "{month}", + "{month} {year}", + "{month} de {year}", + "eu nasci em {year}", + "eu nasci no dia {day} de {month} de {year}", + "eu nasci no dia {day} de {month}", + "para o dia {day} de {month}", + "para {day} de {month}", + "para o dia {day} de {month} de {year}", + "para {day} de {month} de {year}", + "em {day}", + "em {month}", + "em {year}", + "em {day} de {month} de {year}", + "no dia {day}", + "no mês de {month}", + "no ano de {year}", + "no dia {day} de {month}", + "no dia {day} de {month} de {year}", + "meu aniversário é no dia {day} de {month}", + "meu aniversário é no dia {day} de {month} de {year}", + "nasci em {year}", + "a data do meu aniversário é no dia {day} de {month} de {year}", + "registre meu aniversário", + "grave meu aniversário", + "lembre do meu aniversário", + "registre a data do meu aniversário" + ] + }, + { + "name": "AMAZON.NavigateHomeIntent", + "samples": [] + }, + { + "name": "SayBirthdayIntent", + "slots": [], + "samples": [ + "meu próximo aniversário", + "próximo aniversário", + "quando é meu aniversário", + "quando é meu próximo aniversário", + "meu aniversário", + "dias restantes até o meu aniversário", + "dias até o meu aniversário", + "dias restantes", + "quantos dias até o meu aniversário", + "Quantos dias faltam", + "me diga meu aniversário", + "aniversário", + "me dê meu aniversário", + "informação de aniversário", + "diga-me os dias restantes até o meu aniversário", + "quantos dias" + ] + }, + + { + "name": "AMAZON.FallbackIntent", + "samples": [] + } + ], + "types": [ + { + "name": "MonthType", + "values": [ + { + "id": "12", + "name": { + "value": "dezembro" + } + }, + { + "id": "11", + "name": { + "value": "novembro" + } + }, + { + "id": "10", + "name": { + "value": "outubro" + } + }, + { + "id": "09", + "name": { + "value": "setembro" + } + }, + { + "id": "08", + "name": { + "value": "agosto" + } + }, + { + "id": "07", + "name": { + "value": "julho" + } + }, + { + "id": "06", + "name": { + "value": "junho" + } + }, + { + "id": "05", + "name": { + "value": "maio" + } + }, + { + "id": "04", + "name": { + "value": "abril" + } + }, + { + "id": "03", + "name": { + "value": "março" + } + }, + { + "id": "02", + "name": { + "value": "fevereiro" + } + }, + { + "id": "01", + "name": { + "value": "janeiro", + "synonyms": [ + "primeiro mês do ano" + ] + } + } + ] + } + ] + }, + "dialog": { + "intents": [ + { + "name": "RegisterBirthdayIntent", + "confirmationRequired": true, + "prompts": { + "confirmation": "Confirm.Intent.746177723927" + }, + "slots": [ + { + "name": "day", + "type": "AMAZON.Ordinal", + "confirmationRequired": false, + "elicitationRequired": true, + "prompts": { + "elicitation": "Elicit.Slot.653974572406.1040382425372" + }, + "validations": [ + { + "type": "isInSet", + "prompt": "Slot.Validation.190694681136.1424851421300.1030431910159", + "values": [ + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "29", + "30", + "31", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "20", + "21" + ] + } + ] + }, + { + "name": "month", + "type": "MonthType", + "confirmationRequired": false, + "elicitationRequired": true, + "prompts": { + "elicitation": "Elicit.Slot.282358190483.487594834711" + }, + "validations": [ + { + "type": "hasEntityResolutionMatch", + "prompt": "Slot.Validation.190694681136.463018349705.1461889218555" + } + ] + }, + { + "name": "year", + "type": "AMAZON.FOUR_DIGIT_NUMBER", + "confirmationRequired": false, + "elicitationRequired": true, + "prompts": { + "elicitation": "Elicit.Slot.1253554922892.1358447173887" + }, + "validations": [ + { + "type": "isGreaterThan", + "prompt": "Slot.Validation.1253554922892.1358447173887.1026742417738", + "value": "1900" + }, + { + "type": "isLessThan", + "prompt": "Slot.Validation.1253554922892.1358447173887.176185058059", + "value": "2018" + } + ] + } + ] + } + ], + "delegationStrategy": "ALWAYS" + }, + "prompts": [ + { + "id": "Elicit.Slot.653974572406.1040382425372", + "variations": [ + { + "type": "PlainText", + "value": "Certo. Eu ouvi dizer que seu aniversário é no mês de {month}, mas em que dia exatamente?" + }, + { + "type": "PlainText", + "value": "Quando é o seu aniversário?" + }, + { + "type": "PlainText", + "value": "certo no ano de {year} , mas qual data?" + }, + { + "type": "PlainText", + "value": "Qual o dia do seu aniversário?" + } + ] + }, + { + "id": "Elicit.Slot.282358190483.487594834711", + "variations": [ + { + "type": "PlainText", + "value": "Por favor, me diga em que mês é o seu aniversário" + }, + { + "type": "PlainText", + "value": "Certo, mas em que mês exatamente?" + }, + { + "type": "PlainText", + "value": "Em que mês é o seu aniversário?" + }, + { + "type": "PlainText", + "value": "Certo, no dia {day}. Mas em que mês?" + } + ] + }, + { + "id": "Slot.Validation.190694681136.1424851421300.1030431910159", + "variations": [ + { + "type": "PlainText", + "value": "Por favor, dia uma data válida" + } + ] + }, + { + "id": "Slot.Validation.190694681136.463018349705.1461889218555", + "variations": [ + { + "type": "PlainText", + "value": "Por favor, tente novamente com um mês válido" + } + ] + }, + { + "id": "Elicit.Slot.1253554922892.1358447173887", + "variations": [ + { + "type": "PlainText", + "value": " você é do mês de {month} de qual ano?" + }, + { + "type": "PlainText", + "value": " você é de {month} de qual ano?" + }, + { + "type": "PlainText", + "value": "Certo. {day} de {month}. De qual ano?" + }, + { + "type": "PlainText", + "value": "Por favor, me diga em que ano você nasceu" + }, + { + "type": "PlainText", + "value": "Em que ano você nasceu?" + } + ] + }, + { + "id": "Slot.Validation.1253554922892.1358447173887.1026742417738", + "variations": [ + { + "type": "PlainText", + "value": "É velho demais para ser verdade. Por favor, tente novamente." + } + ] + }, + { + "id": "Slot.Validation.1253554922892.1358447173887.176185058059", + "variations": [ + { + "type": "PlainText", + "value": "É jovem demais para ser verdade. Por favor, tente novamente." + } + ] + }, + { + "id": "Confirm.Intent.746177723927", + "variations": [ + { + "type": "PlainText", + "value": "em {day} de {month} de {year} , estou correta?" + }, + { + "type": "PlainText", + "value": "Tem certeza de que deseja registrar {day} de {month} de {year} ?" + } + ] + } + ] + } +} \ No newline at end of file From 7f3b5cc8bc6bd5d53a2e0bc76107d1972267dc75 Mon Sep 17 00:00:00 2001 From: Luan Lima Date: Sun, 12 Jul 2020 14:14:02 -0300 Subject: [PATCH 03/10] support pt-BR module 5 --- 05/lambda/localisation.js | 26 ++ .../interactionModels/custom/pt-BR.json | 433 ++++++++++++++++++ 05/skill-package/skill.json | 3 + 3 files changed, 462 insertions(+) create mode 100644 05/skill-package/interactionModels/custom/pt-BR.json diff --git a/05/lambda/localisation.js b/05/lambda/localisation.js index d7c6793..8cb9a52 100644 --- a/05/lambda/localisation.js +++ b/05/lambda/localisation.js @@ -103,6 +103,32 @@ module.exports = { NO_TIMEZONE_MSG: 'Je n\'ai pas réussi à déterminer votre fuseau horaire. Veuillez vérifier les paramètres de votre appareil et réessayez.' } }, + pt:{ + translation: { + POSITIVE_SOUND: `