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
roni shoreroni shore 

Render VF Component based on User Locale

Hi - I have created 3 vf component, now I have to render it based on User's Locale

Pls suggest a solution
Best Answer chosen by roni shore
Raj VakatiRaj Vakati
Try some think lik below 
<apex:pageBlock rendered="{!$User.LocaleSidKey=='en_US'}">
<c:mycompoent1 />

<apex:pageBlock rendered="{!$User.LocaleSidKey=='en_GB'}">
<c:mycompoent2 />

<apex:pageBlock rendered="{!$User.LocaleSidKey=='XX'}">
<c:mycompoent3 />