bespoken / virtual-alexa

:robot: Easily test and debug Alexa skills programmatically
https://bespoken.io
Apache License 2.0
112 stars 35 forks source link

Add multi-language support #14

Closed jkelvie closed 6 years ago

jkelvie commented 6 years ago

1) VirtualAlexa.Builder should have a locale(string) method for setting the locale It will default to en-US if not set. The value will be used in the JSON requests: https://github.com/bespoken/virtual-alexa/blob/master/src/SkillRequest.ts#L204

2) If no interactionModel or intentSchema is supplied, VirtualAlexa should default to looking for things according to the ASK CLI format It should check first if a models directory exists. If it does and there is no locale specified, it should look for models/en-US.json (the default locale) If locale is specified, it should use the locale to lookup the correct model.

If the models directory does not exist, the existing error prompting the user to specify an intentSchema or interactionModel should be shown