17.multilingual-bot - Lacks the actual functionality #2001
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
customer-replied-to
Indicates that the team has replied to the issue reported by the customer. Do not delete.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
Github issues for JS
Sample information
Describe the bug
Main issue is - This bot does not seem to do what it says. I was looking for this sample to demo to a customer for showing real time translation using choice of languages provided. Though the code got me started, but ran into issues and finally had to build my own echo bot to demo the customer.
Issue #1: The instruction for code snippet is wrong.
adapter.use(new TranslatorMiddleware(languagePreferenceProperty, process.env.translatorKey));
The parameters are in incorrect order. The right code is:
adapter.use(new TranslatorMiddleware(process.env.translatorKey, languagePreferenceProperty));
Issue #2: The call to the translation service should happen in multilingualBot.js but it is not there. Also beyond the list of language selection and once you select the language it gets set in the context. But beyond this it wont call Translater text service or it does not have the logic to go beyond the above said functionality.
The text was updated successfully, but these errors were encountered: