dialogflow / dialogflow-nodejs-client

Node.js SDK for Dialogflow
Apache License 2.0
659 stars 287 forks source link

send proper locale to Dialogflow based on facebook locale #103

Open heedrox opened 6 years ago

heedrox commented 6 years ago

Recovers facebook locale from facebook before ApiAi Request Compares the locale among the ones defined in ApiAi (requires ApiAi to send the user locales from the Dialogflow console through process.env). Stores the Id in a map for caching Injects the locale into ApiAiRequest (there was no public method, not sure if this way was the best)