[SalesForce] How to see Translation for Custom Label in Lightning Component

I have a Lightning Community for different countries. Have components w/ custom labels(Language : English). Labels have a German Translations(German, active). I use labels in tags:

etc.

I see only English equivalent of a label, but I need to see this in German.

For VF SF has:

And this translates labels.

Do we have something like this in Lightning? Or how can I apply Translations to Custom label?

Any help will be appreciated!
Thank you!

Best Answer

Probably this is a Salesforce bug. I have a similar problem. I'm developing a component as part of managed package. Translations work when I'm inside the development org, but I get only English values when using the component in my test org.

My workaround for this is to add a server side action that would return a map of all the custom labels used in the component and then set it as an attribute of type "Map". (You need to reference in apex or visualforce all labels anyway in order to include them in a managed package)

I don't know if your problem is the same so I submitted another question and sample code for the workaround here https://salesforce.stackexchange.com/a/150840/27814

Related Topic