đź‘Ą

Salesforce Lightning Community Translation Setup

This guide will explain how to set up Formyoula Translation for your Lightning Community.

Search for “Digital Experiences” on the Salesforce setup page. Then, click on “All Sites”.

image

You can add translation to an existing community or create a new one. In this example, we will create a new community site.

image

For this guide, we will choose the “Customer Service” template. Translation works on all Salesforce community site templates.

image

After successfully creating the new community site, please click on the “Builder” workspace.

image

On the builder page, please click on the gear icon. Next, select the “Advanced” tab and click on the “Edit Head Markup” button.

image

To add translation support to your community site, please copy and paste the following script into your “Head Markup”. Click “Save” when done.

// Please send a request to [email protected] and we will provide the setup script
image

The next step will be to update the “Content Security Policy (CSP)” on the “Security & Privacy” tab. We will need to set the “Security Level” to “Relaxed CSP”.

image

On the same “Security & Privacy” tab we will now add 3 trusted site URLs.

image

Please add each URL individually.

https://cdn.formyoula-translate.com/vendors/jQuery/jquery.min.js
https://cdn.formyoula-translate.com/auto-translation/formyoula_translation_v230.js
https://app1.formyoula-translate.com/api/translate/field
image

We can now publish or preview our community site.

When we navigate to any discussions that are not in our language, they will be automatically translated. In the following example, we can see a Japanese question translated to English.

image
image

If we update our user language or locale we will see the community text auto-translated to the specific language selected.

image

Translation can be also configured to work manually and each question will include an option for your users to select the language they want to translate the post to.

For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂