Zelto
Agent Chat SDK

Internationalization

Configure the chat widget language.

The Agent Chat SDK supports multiple languages out of the box. Set the language via the personalization option.

Supported languages

CodeLanguage
enEnglish
esSpanish
ptPortuguese

Usage

import { init } from '@zelto/agent-chat-sdk';

init({
  apiKey: 'your-api-key',
  userId: 'user-123',
  personalization: {
    language: 'es',
  },
});

Translated strings

The following UI strings are automatically translated based on the selected language:

  • Open / close chat button labels
  • "New conversation" button
  • Tab labels (Home, Conversations, Articles)
  • Message input placeholder
  • Typing indicator
  • Navigation labels (Back, Recent conversations)
  • Default greeting

Custom greeting

You can override the default greeting with a custom message in any language:

init({
  apiKey: 'your-api-key',
  userId: 'user-123',
  personalization: {
    language: 'pt',
    greeting: 'Olá! Como posso ajudar?',
  },
});

On this page