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

Change DialogFlow query language #1965

Closed
herrlegno opened this issue Oct 19, 2021 · 1 comment
Closed

Change DialogFlow query language #1965

herrlegno opened this issue Oct 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@herrlegno
Copy link

Is your feature request related to a problem? Please describe.
The problem is that, for self-hosted version (at least) I can't set up the default language of the dialogflow query nor the Botonic bot language from the initialization script.

Describe the solution you'd like
Something like this maybe?:

document.addEventListener('DOMContentLoaded', function (event) {
  Botonic.setDefaultLocale('es');
  Botonic.setDialogFlowLanguageCode('es-ES');
  Botonic.render(document.getElementById('root'));
});

Describe alternatives you've considered
.

Additional context
As I'm using DialogFlow as my NLU I need to be able to change the query languageCode to be able to respond in the language the user speak. Also been able to change the default bot i18n language from the initialization would be useful.

@herrlegno herrlegno added the enhancement New feature or request label Oct 19, 2021
@vanbasten17
Copy link
Contributor

merged and published in @botonic/plugin-dialogflow's v0.20.0

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

No branches or pull requests

2 participants