Skip to content

Commit

Permalink
Merge pull request #31 from bbezerra82/translationFixes
Browse files Browse the repository at this point in the history
Locales addition and Translation fixes
  • Loading branch information
akersh-s authored Jan 7, 2020
2 parents 7295fba + 2e30050 commit 8822173
Show file tree
Hide file tree
Showing 15 changed files with 1,526 additions and 513 deletions.
353 changes: 226 additions & 127 deletions lambda/py/lambda_function.py

Large diffs are not rendered by default.

192 changes: 120 additions & 72 deletions lambda/py/language_strings.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion lambda/py/prompts.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Alexa Prompts Language Constants

WELCOME_MSG = "WELCOME_MSG"
WELCOME_REMPROMPT_MSG = "WELCOME_REMPROMPT_MSG"
WELCOME_REPROMPT_MSG = "WELCOME_REPROMPT_MSG"
WELCOME_BACK_MSG = "WELCOME_BACK_MSG"
WELCOME_BACK_MSG_plural = "WELCOME_BACK_MSG_plural"
HAPPY_BIRTHDAY_MSG = "HAPPY_BIRTHDAY_MSG"
HAPPY_BIRTHDAY_MSG_plural = "HAPPY_BIRTHDAY_MSG_plural"
REGISTER_BIRTHDAY_MSG = "REGISTER_BIRTHDAY_MSG"
HELP_MSG = "HELP_MSG"
GOODBYE_MSG = "GOODBYE_MSG"
REFLECTOR_MSG = "REFLECTOR_MSG"
ERROR_MSG = "ERROR_MSG"
ERROR_TIMEZONE_MSG = "ERROR_TIMEZONE_MSG"
1 change: 0 additions & 1 deletion lambda/py/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ask-sdk-core
ask-sdk-s3-persistence-adapter
boto3
pytz
125 changes: 125 additions & 0 deletions models/de-DE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"interactionModel": {
"languageModel": {
"invocationName": "herzlichen glückwunsch",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "AMAZON.NavigateHomeIntent",
"samples": []
},
{
"name": "CaptureBirthdayIntent",
"slots": [
{
"name": "month",
"type": "AMAZON.Month"
},
{
"name": "day",
"type": "AMAZON.Ordinal"
},
{
"name": "year",
"type": "AMAZON.FOUR_DIGIT_NUMBER"
}
],
"samples": [
"{day} {month}",
"{day} {month} {year}",
"{month} {year}",
"Ich bin am {day} {month} geboren",
"Ich bin am {day} {month} {year} geboren",
"Ich bin am {month} {year} geboren",
"merke dir meinen Geburtstag"
]
}
],
"types": []
},
"dialog": {
"intents": [
{
"name": "CaptureBirthdayIntent",
"confirmationRequired": false,
"prompts": {},
"slots": [
{
"name": "month",
"type": "AMAZON.Month",
"elicitationRequired": true,
"confirmationRequired": false,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.795077103633"
}
},
{
"name": "day",
"type": "AMAZON.Ordinal",
"elicitationRequired": true,
"confirmationRequired": false,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.985837334781"
}
},
{
"name": "year",
"type": "AMAZON.FOUR_DIGIT_NUMBER",
"elicitationRequired": true,
"confirmationRequired": false,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.27341833344"
}
}
]
}
],
"delegationStrategy": "ALWAYS"
},
"prompts": [
{
"id": "Elicit.Slot.303899476312.795077103633",
"variations": [
{
"type": "PlainText",
"value": "Ich wurde im November geboren. In welchem Monat wurdest du geboren?"
},
{
"type": "PlainText",
"value": "In welchem Monat wurdest du geboren?"
}
]
},
{
"id": "Elicit.Slot.303899476312.985837334781",
"variations": [
{
"type": "PlainText",
"value": "Ich wurde am sechsten geboren. An welchem Tag wurdest du geboren?"
}
]
},
{
"id": "Elicit.Slot.303899476312.27341833344",
"variations": [
{
"type": "PlainText",
"value": "Ich wurde im Jahr zweitausendvierzehn geboren. In welchem Jahr wurdest du geboren?"
}
]
}
]
},
"version": "2"
}
124 changes: 124 additions & 0 deletions models/en-CA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"interactionModel": {
"languageModel": {
"invocationName": "cake walk",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "AMAZON.NavigateHomeIntent",
"samples": []
},
{
"name": "CaptureBirthdayIntent",
"slots": [
{
"name": "month",
"type": "AMAZON.Month"
},
{
"name": "day",
"type": "AMAZON.Ordinal"
},
{
"name": "year",
"type": "AMAZON.FOUR_DIGIT_NUMBER"
}
],
"samples": [
"{month} {day}",
"{month} {day} {year}",
"{month} {year}",
"I was born on {month} {day} ",
"I was born on {month} {day} {year}",
"I was born on {month} {year}",
"register my birthday"
]
}
],
"types": []
},
"dialog": {
"intents": [
{
"name": "CaptureBirthdayIntent",
"confirmationRequired": false,
"prompts": {},
"slots": [
{
"name": "month",
"type": "AMAZON.Month",
"confirmationRequired": false,
"elicitationRequired": true,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.795077103633"
}
},
{
"name": "day",
"type": "AMAZON.Ordinal",
"confirmationRequired": false,
"elicitationRequired": true,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.985837334781"
}
},
{
"name": "year",
"type": "AMAZON.FOUR_DIGIT_NUMBER",
"confirmationRequired": false,
"elicitationRequired": true,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.27341833344"
}
}
]
}
],
"delegationStrategy": "ALWAYS"
},
"prompts": [
{
"id": "Elicit.Slot.303899476312.795077103633",
"variations": [
{
"type": "PlainText",
"value": "I was born in November. What month were you born?"
},
{
"type": "PlainText",
"value": "What month were you born?"
}
]
},
{
"id": "Elicit.Slot.303899476312.985837334781",
"variations": [
{
"type": "PlainText",
"value": "I was born on the sixth. What day were you born?"
}
]
},
{
"id": "Elicit.Slot.303899476312.27341833344",
"variations": [
{
"type": "PlainText",
"value": "I was born in two thousand fourteen, what year were you born?"
}
]
}
]
}
}
124 changes: 124 additions & 0 deletions models/en-GB.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"interactionModel": {
"languageModel": {
"invocationName": "cake walk",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "AMAZON.NavigateHomeIntent",
"samples": []
},
{
"name": "CaptureBirthdayIntent",
"slots": [
{
"name": "month",
"type": "AMAZON.Month"
},
{
"name": "day",
"type": "AMAZON.Ordinal"
},
{
"name": "year",
"type": "AMAZON.FOUR_DIGIT_NUMBER"
}
],
"samples": [
"{month} {day}",
"{month} {day} {year}",
"{month} {year}",
"I was born on {month} {day} ",
"I was born on {month} {day} {year}",
"I was born on {month} {year}",
"register my birthday"
]
}
],
"types": []
},
"dialog": {
"intents": [
{
"name": "CaptureBirthdayIntent",
"confirmationRequired": false,
"prompts": {},
"slots": [
{
"name": "month",
"type": "AMAZON.Month",
"confirmationRequired": false,
"elicitationRequired": true,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.795077103633"
}
},
{
"name": "day",
"type": "AMAZON.Ordinal",
"confirmationRequired": false,
"elicitationRequired": true,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.985837334781"
}
},
{
"name": "year",
"type": "AMAZON.FOUR_DIGIT_NUMBER",
"confirmationRequired": false,
"elicitationRequired": true,
"prompts": {
"elicitation": "Elicit.Slot.303899476312.27341833344"
}
}
]
}
],
"delegationStrategy": "ALWAYS"
},
"prompts": [
{
"id": "Elicit.Slot.303899476312.795077103633",
"variations": [
{
"type": "PlainText",
"value": "I was born in November. What month were you born?"
},
{
"type": "PlainText",
"value": "What month were you born?"
}
]
},
{
"id": "Elicit.Slot.303899476312.985837334781",
"variations": [
{
"type": "PlainText",
"value": "I was born on the sixth. What day were you born?"
}
]
},
{
"id": "Elicit.Slot.303899476312.27341833344",
"variations": [
{
"type": "PlainText",
"value": "I was born in two thousand fourteen, what year were you born?"
}
]
}
]
}
}
Loading

0 comments on commit 8822173

Please sign in to comment.