function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Translation for sites

We have a requirement where we want to translate our VF pages into different languages depending on the locale of the browser. I have looked into custom lables but it looks like it would be too tedious to create a label for the many different languages we want to provide support for. We also want to translate picklist values. Is there a resource bundle equivalent in salesforce like we have in Java?


In addition to this we also want to have mini flag icons, clicking which would cause the pages to be rendered in the respective language represenetd by that flag when clicked. 


Can someone direct me to some resources where I can learn how to implement this?


you create labels for parts of the UI, not per language.  once you migrate your UI text to use labels, you then translate those labels via either the Translation Workbench in the Setup area, or in Eclipse via raw XML.  Search the Help area for "translation workbench" to get started.