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
Armoury05Armoury05 

Lightning Component Label Translations (for Lightning Out purpose)

Hello,

We are developing a form in Lightning Component where it will be deployed in a web platform using LIghtning Out (outside Salesforce). What we would like to do is to support multi language with the same set of Lightning Components. Is there a way where the form labels will get translated based on some code/setting? For example - if the attribute value passed to the component is 'French' , all the form labels and buttons would get translated to French language. Similarly it translates any languages dynamically as long as it is translated in Salesforce.
Checked the Lightning Component documentation and it suggests the translation based on language of the user set who is accessing the component which is not exactly what we are looking for. 
Is this possible or any suggestions on this?
NagendraNagendra (Salesforce Developers) 
Hi Satish,

Sorry for this issue you are encountering.

May I suggest you please check with below link for similar discussion. Please let us know if this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra
saurabh shukla 17saurabh shukla 17
Did you guys find the answer for this? can we have language translations for custom labels in lightning, like we have in VF.
Dana Furman 1Dana Furman 1
Hi Armoury05 - Did you find a solution to translating in Lighting out? Thanks
Armoury05Armoury05
We did not explore this further but there was an idea discussed like configuring different users with different languages and use them for authenticating.So when Lightning Out runs as this user the language set will kicked in the custom labels used in the component. Down side of this is different user setups and licenses.