Skip to main content

We have a community which has support of multilingual. For the language selection we are using salesforce Language Selector content component. 

 

For switching of the chat button basis on language we are using snap snippet settings directToButtonRouting function.

 

 Now the problem is how to get the selected language value in this snippet settings file to return the corresponding button. Can someone help me how to get the selected language value in snippet settings file.

 

https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_snippet_settings_file.htm

 

https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_directtobutton_routing.htm

 

#Service Cloud  #Integration #Embedded Service #Live Chat #Snap-in

1 risposta
  1. 15 ago 2021, 15:36

    Hello,

     

    I've just tested this and you can only choose a different language using the language selector if you are a Guest User eg. a user that hasn't logged in.

     

    When you choose a lanugage this seems to be added to the URL of the site eg.

     

    /partner/s/?language=en_US /partner/s/?language=fr

     

    Are you able to use this Language from the URL to customise your labels etc.?  Thanks, Tom

0/9000