Closed lomluca-zz closed 6 years ago
Take a look at the dev branch; I merged your changes, and made a few additions:
app.language
must be set explicitly to en
when no language is specified, otherwise a call made by specifying a language will change the default for future calls.Please test and comment if possible.
Good additions. I've read everything, it seems ok. I tried to use dev branch module in my node app and it runs perfectly. Thanks!
Merged and released in 1.4.0.
I added few lines to support multi-language in Dialogflow. I suppose that in the message object the field "language" could be present: if not undefined, the language field of the apiai instance is updated accordingly:
app.language = message.language
In this way Dialogflow will answer in the same language of the user, if trained.