Skip to content

Commit

Permalink
Add support for it-IT
Browse files Browse the repository at this point in the history
This allows the skill to appear on the amazon.it store: https://developer.amazon.com/en-US/docs/alexa/custom-skills/develop-skills-in-multiple-languages.html#example-worldwide-distribution-with-one-language

The only thing missing is the eTag from .ask\config.
  • Loading branch information
osiride authored and corux committed Aug 3, 2021
1 parent 2a1f940 commit 9cdcbae
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ask/config
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
},
"de-DE": {
"eTag": "75563d868e94b55e580dbfdac4a280c2"
},
"it-IT": {
"eTag": ""
}
},
"lambda": [
Expand Down
36 changes: 36 additions & 0 deletions models/it-IT.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"interactionModel": {
"languageModel": {
"invocationName": "torcia",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "TimeIntent",
"samples": [
"per {time}",
"con {time}",
"{time}"
],
"slots": [
{
"name": "time",
"type": "AMAZON.DURATION"
}
]
}
],
"types": []
}
}
}
17 changes: 17 additions & 0 deletions skill.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,23 @@
"smallIconUri": "https://s3-eu-west-1.amazonaws.com/alexa-flashlight-skill/icon108.png",
"largeIconUri": "https://s3-eu-west-1.amazonaws.com/alexa-flashlight-skill/icon512.png",
"description": "Mit diesem Skill wird dein Echo zum Nachtlicht und dein Echo Button zur Taschenlampe. Mit \"Alexa, starte Taschenlampe\" beginnt der Echo Lichtring für 5 Minuten blau zu leuchten. Durch Drücken auf einen Echo Button, wird dieser zur Taschenlampe. Mehrmaliges Drücken des Echo Buttons erlaubt es dessen Farbe zu ändern.\n\nBitte beachte, dass es technisch nicht möglich ist, den Echo Lichtring in einer anderen Farbe leuchten zu lassen. Dafür können die Echo Buttons in verschiedenen Farben leuchten.\n\nDu kannst auch sagen, wie lange der Echo Lichtring leuchten soll. Mit \"Alexa, starte Taschenlampe für30 Sekunden\" oder \"Alexa, starte Taschenlampe für zwei Minuten\" bleibt das Licht die gewünschte Zeit an. Solange du mit Echo Buttons interagierst, leuchten diese weiter.\n\nUm die Taschenlampe auszuschalten, sage einfach \"Alexa, stopp\".\n\nDieser Skill hat keine Sprachausgabe. Die einzige Reaktion ist das Ein- und Ausschalten des Lichtrings und der Echo Buttons.\n\nAuf der Seite https://www.amazon.de/gp/help/customer/display.html?nodeId=201601790 sind die Informationen zum Echo Lichtring beschrieben."
},
"it-IT": {
"name": "Torcia",
"summary": "Torcia fa accendere l'anello luminoso blu di Alexa e permette di usare gli Echo Button come torce portatili.",
"examplePhrases": [
"Alexa, apri torcia",
"Alexa, apri torcia per cinque minuti"
],
"keywords": [
"Luce",
"Torcia",
"Button",
"Anello luminoso"
],
"smallIconUri": "https://s3-eu-west-1.amazonaws.com/alexa-flashlight-skill/icon108.png",
"largeIconUri": "https://s3-eu-west-1.amazonaws.com/alexa-flashlight-skill/icon512.png",
"description": "Usa questa skill per trasformare il tuo Echo in una luce notturna e il tuo Echo Button in una torcia. Pronuncia \"Alexa, apri torcia\" per accendere l'anello luminoso del tuo Echo per 5 minuti. Premi un Echo Button per trasformarlo in una torcia. Premi nuovamente l'Echo Button per cambiarne il colore.\n\nAttenzione, non è possibile cambiare il colore dell'anello luminoso di un Echo. Se vuoi usare un colore differente, usa un Echo Button.\n\nPuoi cambiare la durata della luce. Pronuncia \"Alexa, apri torcia per 30 secondi\" oppure \"Alexa, apri torcia per 2 minuti\" per accendere la luce per una durata specifica. Gli Echo Button non si spegneranno finché ci interagisci.\n\nPer spegnere la torcia, pronuncia \"Alexa, stop\".\n\nQuesta skill non pronuncia alcuna frase. Fa soltanto accendere l'anello luminoso degli Echo e gli Echo Button.\n\nVisita https://www.amazon.it/gp/help/customer/display.html?nodeId=201601790 per ulteriori informazioni sui colori dell'anello luminoso."
}
},
"isAvailableWorldwide": true,
Expand Down
3 changes: 3 additions & 0 deletions src/handlers/AMAZON_HelpIntentHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export class AmazonHelpIntentHandler implements RequestHandler {
if (request.locale.match(/^de-/)) {
helpText = `Dieser Skill lässt den Echo Licht Ring und die Echo Buttons leuchten.
Für weitere Informationen siehe im Skill Store nach.`;
} else if (request.locale.match(/^it-/)) {
helpText = `Questa skill fa accendere l'anello luminoso di un Echo o un Echo Button.
Per maggiori informazioni visita lo Skill Store`;
} else {
helpText = `This Skill lets the Echo light ring and the Echo Buttons glow.
Further information can be found in the Skill Store.`;
Expand Down

0 comments on commit 9cdcbae

Please sign in to comment.