-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.8.1 - Multi language ready + German language support (#56)
* Create prompts.py * Create language_strings.json * Create locale_de_de.json * MUI language support Added code to support Multi language responses by Alexa. - included prompts.py required for matching - added AbstractRequestInterceptor -> LocalizationInterceptor - replaced all (except debugging one) language strings in text with dynamic objects
- Loading branch information
Showing
4 changed files
with
216 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"en": { | ||
"ERROR_401": "It looks like I am unauthorized to reach home assistant, please check your account linking or your long lived access token and try again", | ||
"ERROR_404": "It looks like I may not be able to find the input text entity. Please check that you've added it to home assistant and try again", | ||
"ERROR_400": "Could not communicate with home assistant. Please check the Amazon CloudWatch logs in the custom skill developer console.", | ||
"ERROR_ACOUSTIC": "Sorry I did not catch that... <break time='200ms'/> {}", | ||
"ERROR_CONFIG": "Sorry, I am having trouble, please check your configuration, in the custom skill and try again.", | ||
"ERROR_SPECIFIC_DATE": "Sorry, I can not do specific dates right now, try a duration instead, like... in 5 hours", | ||
"HELP_MESSAGE": "This skill should be only reactively while triggered via home assistant.", | ||
"OKAY": "Okay", | ||
"SKILL_NAME": "home assistant custom actions", | ||
"STOP_MESSAGE": "Goodbye!", | ||
"SELECTED" : "You selected {}", | ||
"WELCOME_MESSAGE": "Welcome to {}. Input text is: {}" | ||
}, | ||
"de": { | ||
"ERROR_401": "Ich habe scheinbar keine Berechtigungen für die verbindung zu home assistant. Bitte prüfe deinen H A Benutzer oder Access Token.", | ||
"ERROR_404": "Ich kann kein input text Objekt in home assistant finden. Bitte überprüfe ob du dieses bereits hinzugefügt hast.", | ||
"ERROR_400": "Ich kann keine Verbindung zum home assistant vornehmen. Bitte prüfe die Amazon CloudWatch logdateien in der Alexa Entwickler Console.", | ||
"ERROR_ACOUSTIC": "Das habe ich leider nicht verstanden... <break time='200ms'/> {}", | ||
"ERROR_CONFIG": "Entschuldige, hier ist etwas schief gelaufen. Bitte prüfe deine Konfiugration im custom skill und versuche es erneut.", | ||
"ERROR_SPECIFIC_DATE": "Ich kann leider noch kein spezifisches Datum verarbeiten. Bitte nutze stattedessen Zeiträume wie beispielsweise... in 5 Stunden.", | ||
"HELP_MESSAGE": "Dieser Skill sollte nur reaktiv genutzt werden, wenn er via home assistant angestossen wird", | ||
"OKAY": "Okay", | ||
"SELECTED" : "Du hast {} gewählt", | ||
"SKILL_NAME": "home assistant custom actions", | ||
"STOP_MESSAGE": "Machs gut!", | ||
"WELCOME_MESSAGE": "Willkommen bei {}. Der input text ist: {}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Alexa Prompts Language Constants | ||
ERROR_401 = "ERROR_401" | ||
ERROR_404 = "ERROR_404" | ||
ERROR_400 = "ERROR_400" | ||
ERROR_ACOUSTIC = "ERROR_ACOUSTIC" | ||
ERROR_CONFIG = "ERROR_CONFIG" | ||
ERROR_SPECIFIC_DATE = "ERROR_SPECIFIC_DATE" | ||
HELP_MESSAGE = "HELP_MESSAGE" | ||
OKAY = "OKAY" | ||
SELECTED = "SELECTED" | ||
SKILL_NAME = "SKILL_NAME" | ||
STOP_MESSAGE = "STOP_MESSAGE" | ||
WELCOME_MESSAGE = "WELCOME_MESSAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"interactionModel": { | ||
"languageModel": { | ||
"invocationName": "custom actions", | ||
"intents": [ | ||
{ | ||
"name": "AMAZON.CancelIntent", | ||
"samples": [] | ||
}, | ||
{ | ||
"name": "AMAZON.HelpIntent", | ||
"samples": [] | ||
}, | ||
{ | ||
"name": "AMAZON.StopIntent", | ||
"samples": [] | ||
}, | ||
{ | ||
"name": "AMAZON.NavigateHomeIntent", | ||
"samples": [] | ||
}, | ||
{ | ||
"name": "AMAZON.YesIntent", | ||
"samples": [ | ||
"yes" | ||
] | ||
}, | ||
{ | ||
"name": "AMAZON.NoIntent", | ||
"samples": [ | ||
"no" | ||
] | ||
}, | ||
{ | ||
"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} at {Times}", | ||
"at {Times}", | ||
"{Dates}" | ||
] | ||
} | ||
], | ||
"types": [ | ||
{ | ||
"name": "Selections", | ||
"values": [ | ||
{ | ||
"name": { | ||
"value": "Amazon Prime", | ||
"synonyms": [ | ||
"Amazon", | ||
"Amazon Video" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": { | ||
"value": "Hulu" | ||
} | ||
}, | ||
{ | ||
"name": { | ||
"value": "YouTube" | ||
} | ||
}, | ||
{ | ||
"name": { | ||
"value": "Netflix" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} |