Internationalization
The I18n library is already integrated in Kogno, so the development of a multi-language chatbot is relatively easy.
Configuration
Default locale
Setup locales
Examples
English: config/locales/en.yml
config/locales/en.ymlen:
hello:
- "Hello"
- "Hi"
hello_name:
"Hello %{name}!"
goodbye:
"Goodbye 👋"Spanish: config/locales/es.yml
config/locales/es.ymlUsage
t(key=String|Symbol, **interpolation)
t(key=String|Symbol, **interpolation)Example
User Locale
Last updated
Was this helpful?