The I18n library is already integrated in Kogno, so the development of a multi-language chatbot is relatively easy.
Kogno will load automatically all
.ymlfiles located in the folder
All necessary locales files can be created. Being one for each language supported by the chatbot.
- "¡Hola! 😃"
If in value there is more than one option, like in the example above,
hellowith options "Hello" and "Hi", Kogno will randomly return a single one.
This would help create a less monotonous conversation.
The global method
I18n.t()) can be called anywhere in a project's code.
class MainContext < Conversation
intent :gretting do
@reply.text t(:hello_name, first_name: @user.first_name)
intent :bye do
But this can be changed by calling the