Chat: Localize the embedded widget UI (en/es/pt) instead of hardcoded English
Intercom localizes all Messenger UI to the visitor's browser language for every supported language, with a language_override attribute (https://www.intercom.com/help/en/articles/180-localize-the-messenger-to-work-with-multiple-languages). Our widget script hardcodes English strings such as 'Type a message…', 'Start chat', 'We're away right now.', 'How would you rate your experience?', 'Search articles…' and the default welcome 'Hi there. How can we help?' in app/api/chat/widget.js/route.ts. This breaks PRODUCT.md's rule of no hardcoded UI strings across en/es/pt, and Latin America is the home market, so most end customers see an English widget on a Spanish site. First scope: move widget strings to the chat messages namespace, pick the locale from navigator.language or a data-locale attribute, and add a widget-level default language setting. Priority: high. Effort: S. Compared with Intercom.
Comentários 0
Ainda sem comentários.
Entre para comentar