In visualforce page we could access plural labels by writing {!$ObjectType.Opportunity.labelPlural}
but in lightning it does not seem to support that. Am I doing something wrong?
[SalesForce] How to get plural label of a standard object inside salesforce lightning component
Related Topic
- [SalesForce] How to get custom Visualforce button to display on lightning record page
- [SalesForce] How to execute lightning component functions (apex or javascript controller) from a Visualforce page that includes the component
- [SalesForce] How to get the current record ID from within a Visualforce Lightning component (without using a Standard Controller)
Best Answer
Unfortunately
$ObjectType
isn't available in Lightning. You can find Lightning Global Value Providers here.For your use case, you will need to call a server-side Apex Method which will use getLabelPlural() from DescribeSObjectResult Class to get you what you need.