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

Ho to get Translation Workbench values in apex or visual force

Hi All,

I would like to know if there is any way to get the translation values of a field's label / value into apex class or visualforce.


Let's say I have a custom field, call "X" which translated to "X1" (not a custom label).

I need the ability to display both field's labels inside the visual force page i.e. :"X" / "1".


I didn't found any solution for this issue, all the solution I had found not support in this kind of requiremnet,

I'll appriciate any help,

Thanks in advance



Ritesh AswaneyRitesh Aswaney

one possible approach could be to use custom labels, with translated values.

using a label (System.Label.Label_Name or $Label.Label_Name)  retrieves the locale specific value.


also just a thought, but I'm wondering if you've translate values in the workbench, do describe calls return the translated field name values ?