Skip to content

Commit

Permalink
Add spanish locale (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarmar authored Apr 6, 2023
1 parent 3ae3f46 commit 8a0d7f2
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 1 deletion.
17 changes: 17 additions & 0 deletions lambda/language_strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@
"STOP_MESSAGE": "Tchau!",
"WELCOME_MESSAGE": "Bem vindo ao {}. A entrada de texto é: {}"
},
"es": {
"ERROR_401": "Parece que no tengo permisos para acceder a home assistant. Por favor, comprueba el enlace de cuenta o el token de acceso y vuelve a intentarlo.",
"ERROR_404": "Parece que no puedo encontrar la entidad de texto de entrada. Por favor, comprueba que la has añadido a home assistant y vuelve a intentarlo.",
"ERROR_400": "No puedo comunicarme con home assistant. Por favor, comprueba los registros de Amazon CloudWatch en la consola de desarrollo de habilidades personalizadas.",
"ERROR_ACOUSTIC": "Lo siento, no he entendido... <break time='200ms'/> {}",
"ERROR_CONFIG": "Lo siento, tengo problemas, por favor, comprueba tu configuración en la habilidad personalizada y vuelve a intentarlo.",
"HELP_MESSAGE": "Esta skill debería de responder solo cuando se invoque desde home assistant.",
"OKAY": "Okay",
"STRING": "Has seleccionado {}",
"SELECTED": "Has seleccionado {}",
"SKILL_NAME": "home assistant custom actions",
"STOP_MESSAGE": "Adiós!",
"WELCOME_MESSAGE": "Bienvenido a {}. El texto de entrada es: {}"
},
"ft-FR": {
"SKILL_NAME": "Actionable notifications"
},
Expand All @@ -80,5 +94,8 @@
},
"pt-BR": {
"SKILL_NAME": "Ações customizadas"
},
"es-ES": {
"SKILL_NAME": "Acciones personalizadas"
}
}
116 changes: 116 additions & 0 deletions skill-package/interactionModels/custom/es-ES.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"interactionModel": {
"languageModel": {
"invocationName": "actionable notifications",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "AMAZON.NavigateHomeIntent",
"samples": []
},
{
"name": "AMAZON.YesIntent",
"samples": ["si"]
},
{
"name": "AMAZON.NoIntent",
"samples": ["no"]
},
{
"name": "String",
"slots": [
{
"name": "Strings",
"type": "AMAZON.SearchQuery"
}
],
"samples": [" {Strings}"]
},
{
"name": "Select",
"slots": [
{
"name": "Selections",
"type": "Selections"
}
],
"samples": ["{Selections}"]
},
{
"name": "Number",
"slots": [
{
"name": "Numbers",
"type": "AMAZON.FOUR_DIGIT_NUMBER"
}
],
"samples": ["{Numbers}"]
},
{
"name": "Duration",
"slots": [
{
"name": "Durations",
"type": "AMAZON.DURATION"
}
],
"samples": ["{Durations}"]
},
{
"name": "Date",
"slots": [
{
"name": "Dates",
"type": "AMAZON.DATE"
},
{
"name": "Times",
"type": "AMAZON.TIME"
}
],
"samples": ["{Dates} a las {Times}", "a las {Times}", "{Dates}"]
}
],
"types": [
{
"values": [
{
"name": {
"value": "Amazon Prime",
"synonyms": ["Amazon", "Amazon Video"]
}
},
{
"name": {
"value": "Hulu"
}
},
{
"name": {
"value": "YouTube"
}
},
{
"name": {
"value": "Netflix"
}
}
],
"name": "Selections"
}
]
}
},
"version": "1"
}
5 changes: 4 additions & 1 deletion skill-package/skill.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest": {
"apis": {
"custom": { }
"custom": {}
},
"manifestVersion": "1.0",
"publishingInformation": {
Expand All @@ -20,6 +20,9 @@
},
"pt-BR": {
"name": "Actionable notifications"
},
"es-ES": {
"name": "Actionable notifications"
}
}
}
Expand Down

0 comments on commit 8a0d7f2

Please sign in to comment.