| Developers Guide

| Developers Guide

  • Docs
  • API
  • Help
  • Blog

Internationalization

Add a language

Edit your bot configs

In the Admin section > Your bots > Configs

Bot Config

Switch language

Go back to Studio and switch language

Switch Language

You'll see a "missing translation" notification on your content

Missing Translation

Translate your content

Edit the content and add a translation Edit Content Edited Content

Change the language

Botpress use the browser language to detect the user language. This is stored in the language field of the user attributes. It is possible to change the language of a user by modifying this field.

See updateAttributes

Example usage:

await bp.users.updateAttributes('web', 'someId', { language: 'fr' })
  • Add a language
    • Edit your bot configs
    • Switch language
    • Translate your content
  • Change the language
| Developers Guide
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Facebook Open Source
Copyright © 2021 Botpress Inc.