Display Custom LWC Components for Messaging for Web in Your Translated Languages
To display Messaging for Web custom LWC components in your translated languages, create a JSON file and upload it as a static resource in Salesforce. Alternatively, use deployment configuration data to access Messaging for Web custom labels.
By default, Messaging for Web’s custom LWC components can’t fetch translations for Salesforce custom labels. These Salesforce custom labels use site language to load translated labels. Our custom LWC components are rendered within the unique site generated for each Messaging for In-App and Web deployment. Messaging for In-App and Web loads the unique site in its default language, which prevents custom LWC components from fetching labels in any other language. Use the instructions in this topic to translate a custom LWC component into multiple languages.