+ Start a Discussion
stoutstreetstoutstreet 

Dynamic Language Assignment in Visualforce page

Hi,

 

I am trying to dynamically assign the language in a visualforce page based on the User's language defined in the personal information. Right now it is hard coded as

 

 

<apex:page language="fr" >.

...

 

</apex:page>

 

Is it possible to achieve this via global variables without the use of a custom controller ? Alternatively can we leverage Custom Settings to achieve this.

 

Thanks

Atirath

Raj VakatiRaj Vakati
Hi Atiran ,
Use this code .
<apex:page language="{!$User.LanguageLocaleKey}" >.

Hello ,  
</apex:page>