Skip to main content

is there any possibility to translate the complete contact record based on user's language in salesforce b2b commerce? 

We have a B2B store where we have given option to choose language to end users so that the site can translated to requested language. The change of the language is also happens on user's language field too.  

Now we want to translation happens to end user's contact record as well. 

 

#B2B Commerce  #B2B Commerce Cloud  #B2B Commerce Lightning  #B2b Commerce Storefront

4 个回答
  1. 10月26日 12:05

     Hi @padmini panigrahi

    Yes, this is possible, but it requires a custom solution for translating Contact field values dynamically based on the user's selected language.

    Salesforce B2B Commerce supports storefront translations, but changing the user's language does not automatically translate the existing values stored in Contact records.

    You can consider the following approaches:

    1. Use Salesforce Translation Workbench for supported field labels and picklist values.
    2. For text field values, build a custom translation solution using Apex and an external translation API.
    3. If you support a limited number of languages, maintain language-specific translations in custom fields or custom objects.
    4. Use the user's selected language to display the appropriate translated values in your storefront without changing the original Contact record data.

    Since you have many users across different regions and countries, I would recommend a custom translation layer that retrieves the appropriate translated values based on the user's selected language.

    Official documentation: 

    https://help.salesforce.com/s/articleView?id=workbench.htm&language=en_US&type=5

    I hope this helps! If you find this answer helpful, please select it as the Best Answer. 

     

    Thanks, 

    Deepak Sachdeva 

    Nubys Tech. Pvt. Ltd.

0/9000