Skip to content
TruCom Developers
JavaScript SDK
DocumentationCustomization
JAVASCRIPT SDK

Language and labels

Choose the interface language and keep your team’s wording consistent across installations.

Set the language

JavaScript
await TruComWidget.setLanguage('fr');
// Select language from your own application route or locale setting.
await TruComWidget.setLanguage(window.location.pathname.startsWith('/de/') ? 'de' : 'en');

Core translations

Core interface labels are provided in English, French, Portuguese, Swahili, Spanish, German and Czech. Other language codes use English fallback labels. Articles, customer messages, custom greetings and server validation errors are not automatically translated. A regional code uses its base language for the core label dictionary.

Override labels

Use the same label keys available in widget settings. Explicit wording is displayed as provided.

JavaScript
await TruComWidget.configure({
  labels: {
    home: 'Welcome', messages: 'Your messages', help: 'Find an answer',
    help_heading: 'Help and resources', search_placeholder: 'Search our guides',
    prechat_title: 'Let’s get you to the right person',
    prechat_button: 'Continue', service_status: 'Service updates'
  }
});

Label keys

  • home, messages, help, help_heading, search_placeholder
  • conversation_hint, messages_intro, empty_title, empty_message
  • prechat_title, prechat_intro, prechat_button
  • name, email, phone, company
  • team, end, minimize, service_status
TruCom DevelopersSupport that belongs in your product.

Search documentation