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
AichaSFAichaSF 

translate lightning button component

Hello, 
I want to transale lightning button label.
Can some on help me.
Alain CabonAlain Cabon
@AichaSF

<lightning:button label="[!v.mylabel}" onclick="{!c.doSomething}"/>

var staticLabel = $A.get("$Label.c.task_mode_today");
component.set("v.mylabel", staticLabel);

... or just:

<lightning:button label="{!$Label.c.task_mode_today}" onclick="{!c.doSomething}"/>

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/labels_dynamic.htm

task_mode_today is a custom label and the translations is simple.

User-added image


 
Alain CabonAlain Cabon
 The translations are simple when you create the custom labels.
Ferid ReminjanFerid Reminjan
Present day innovations permit the utilization of calculations for moment interpretation and computer games and for the interpretation of talk, pictures and messages. It is presently not important to employ a unique individual to interpret and voice over video materials. You can utilize the service https://vidby.com/ that will do all that utilizing machine interpretation. What's more, indeed, in my view, machine interpretation used to be extremely broken, observable and unsavory to pay attention to, yet presently it is vague from human discourse.