Closed jensbuehl closed 6 years ago
According to Amazon it is as intended and as of now no workaround seems available. If anybody runs into the same problem, please support the idea so that we may get the locale property for events anytime soon:
Hi @exe222 ,
Thanks for your effort in looking into this. Since this is a non-SDK related issue, I would recommend future discussions to move to the link above.
Regards
Reopen vor SDK v2: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/322
I have successfully integrated the Alexa.HousholdListEvents in my node.js AWS lambda based skill. Now I am trying to use language translation as for usual Intents / Requests.
Unfortunately in the HousholdListEvent the "request" does not contain locale information and instead of a translated string I am getting just the identifier repeated when using t(). See example below. I cannot get the locale information from the received event and would have to fall back to english which is blocking me from starting skill the certification process.
If you need further information - feel free to ask. I am more than happy to provide more details if needed.
Any help is appreciated!
Why do I have no locale information as part of the event? Why is t() not working as expected (just like for normal intents)? How could I translate in the event handler based on the origin locale?
My event request:
I am using the Default Translation interceptor, which probably needs an update in case the request does not include locale Information:
My translation usage:
My result (in the ItemsCreated event handler):
Expected result (as for other requests):
Your Environment
Node.js and NPM Info