Is there a way to use the Custom Lable translations on the Visualforce page for the public sites? I have one user - Site User, which has set the language to English, but in reality, the user visiting this public page doesn't have to be English speaking, but e.g. Spanish. Is there a way how to define the user language, not from the SF User but from the real user locale?


This is a language argument for apex:page:

The language used to display labels that have associated translations in Salesforce. This value overrides the language of the user viewing the page. Possible values for this attribute include any language keys for languages supported by Salesforce, for example, "en" or "en-US".

From the dev docs

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.