Day 16 : Translate Custom tabs with Custom Labels #TexeiAdventCalendar

By

3 minutes de lecture

Hi everyone, it’s me again ! I hope you had a great time yesterday with Mouloud HABCHI’s article, in case you missed it, you can find it here and see how dynamics forms work on Salesforce.


Today we will take our DeLorean, drive at the speed of 88 miles per hour and have a glance at Spring’21 release.

… Finally we can use custom labels in custom tabs …

I want to talk about this new feature because a lot of clients I worked for ask for that functionality and I think it’s a big improvement.

This will help you to offer, on a easy way, an enhanced experience to your users in my opinion.

How to do that ?

First you need to create a custom label. Go to “Setup > Custom Labels” and add a new one. For this article, I have created one named : “TEST_CUSTOM_LABEL” and its content is “FIRST TEST”. I usually use, as naming convention, “OBJNAME_PURPOSE_OF_LABEL”.

Then go on a record page, for this example I choose a dummy opportunity and then Edit the page from the Setup menu.

Now that you are in the app builder, go to the tabs section, add a new one and choose “Custom” in the picklist. In the Spring 21, you have now a helptext informing that you can use a custom label.

From app builder in Spring 21

As you can see on the screenshot, if you want to use your new custom label you have to employ the following format {!$Label.NameOfTheLabel}, in our case {!$Label.TEST_CUSTOM_LABEL}.

And Voila ! As you can see, the new custom tab name is “FIRST TEST”, this is the value of our custom label.

Result in English

After that, i added the translation in french (PREMIER TEST) for the label we used. And switched the user’s language to French.

“Welcome to October 21, 2015 Marty !”. Our tab is translated into french.

Result in French

I think everyone who was confronted with this issue / client’s request will enjoy this new feature like I do. And if you want to have a look of what you can do in spring 21, you can ask for a pre-release org here.


Hope you had a good read, and come back tomorrow for a new article written by Jorge Centeno.

Follow us on LinkedIn here and on Twitter here.

Want to continue learning? Check out our article Day 17: Analyze Your Lightning Page Performance.

Read more posts