react-native-dialogflow
react-native-dialogflow copied to clipboard
Multiple languages?
Love the library!
I want to add multiple language responses, so that when a user sends a query in a certain language, the response comes back in that language.
Something like:
Dialogflow_V2.setConfiguration(
'email',
'privateKey',
Dialogflow_V2.LANG_ENGLISH_GB || Dialogflow_V2.LANG_SPANISH,
'projectId',
);
Right now, if a user submits a query in Spanish, the response comes back in English, even if the responses defined in the DialogFlow console are in Spanish.
Thanks!
Hey I have the same issue. Did u find any solution?
Edit: I created separate functions for each language and put the entire setConfiguration in them and seems to work.