Message Translator widget not working properly

HI Team,

I've tried to implement the message translator on my localhost using the given blueprint from the dev portal https://developer.genesys.cloud/blueprints/digital-messaging-translator-blueprint/. The widget is appearing and the translation is appearing only for the first message from the customer and rest of the messages from agent/customer are translating but they are not appearing in the widget.

When I try to refresh the redirect application url on my browser, I'm able to see all the translated messages. So, how do I make it work for the widget using my localhost? And if I try to host this blueprint on EC2 will it make a difference?