Skip to main content
Well currently the LWC framework allows importing each custom label one by one to use it or as far as I know this is the only option.

 

So in case if anyone wishes to use multiple custom labels then s/he needs to import them all with multiple import statements which are not desirable I guess.

 

So is there any workaround to this?

 

Or any single import statement that makes it all labels available in one go?
2 answers
  1. May 5, 2020, 4:26 PM
    Hi Chandra,

     

    If you have a large list of labels you want to use in multiple components, just like a utility component that imports all the labels and then exposes them bundled together in one object via an @api method. Then your main component will have a cleaner list of imports.