Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple languages? #64

Open
24dev opened this issue May 20, 2019 · 1 comment
Open

Multiple languages? #64

24dev opened this issue May 20, 2019 · 1 comment

Comments

@24dev
Copy link

24dev commented May 20, 2019

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!

@4gentP
Copy link

4gentP commented Sep 15, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants