Lightning: How to use Custom Labels inside components?

What is the way to use localized labels from Custom Labels or from field config inside lightning components?

In VF it was possible like:

  • $ObjectType[sObjectName].fields[fieldName].Type
  • $Labels.Custom_Label

Answer

This feature has now been added as of Summer ’15

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

Attribution
Source : Link , Question Author : Natallia , Answer Author : Daniel Fuller

Leave a Comment