Yoctol / bottender

⚡️ A framework for building conversational user interfaces.
https://bottender.js.org
MIT License
4.23k stars 335 forks source link

[Feature] - Internacionalization #176

Open pavei opened 6 years ago

pavei commented 6 years ago

Do you have any approach about internationalization with botttender?

tw0517tw commented 6 years ago

Hi @pavei ,

Could you please explain more on internationalization with bottender? Like what's the problem you are facing or what can be done to improve this.

pavei commented 6 years ago

I have one bot that answers questions in tree diferente languages. But some of this "messages" are fixed (that not came from database) Like: "Hello".

So like MS-Botbuilder do:

1 - They automatically detect the user language 2 - They have a way to provide tokens and it auto-translate when use like, context.sendText("token_123").

https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-localization

roonie007 commented 6 years ago

I suggest you the i18n package : https://www.npmjs.com/package/i18n , it does very well the job , and easy to include in the Bot , we are using it in work, one of the bots has more than 10 languages and changing between them is really easy too .