4

When I use a Custom Label in a Lightning Component of managed package (with custom namespace), Salesforce changes the file and saves the label with the default namespace.

For example, I save $Label.mynamespace.labelName but on the server I found $Label.c.labelName

This happens despite the development tool, I tried both Mavensmate and the Developer Console, so I believe it's something of the platform.

Is it normal?

1 Answer 1

2

I faced the similar issues but what i observed was , this works fine now even inside managed package with $Label.c.labelname and there is no need to explicitly add the namespace .

The docs do not mention this but i just tested this with c namespace and it works inside managed namespace .

2
  • Yes, I tried and it works for me as well. So no problem in managed packages, but I wonder why... Commented Jul 31, 2017 at 13:13
  • I guess its one of those things thats fixed in v40.0 and docs have missed it Commented Jul 31, 2017 at 14:39

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.