[SalesForce] Localization for guest users

I want to make site localization for guests.

How can I do it?

I am wondering how to set guest's language for all pages.

Best Answer

You can easily do it in the code, I don't think there's a way in the config of the Site itself.

Modify all your Site pages to include language param, for example

<apex:page
    standardStylesheets="false"
    showHeader="false"
    language="{!$CurrentPage.parameters.l}">

And then you'll need somehow (picklist on the site? cookie?) set the parameter in the URL to for example l=en_US, l=fr, l=nl etc.

Related Topic