Contents
How to get a custom label translation in Salesforce?
The language used to display labels that have associated translations in Salesforce. This value overrides the language of the user viewing the page. Possible values for this attribute include any language keys for languages supported by Salesforce, for example, “en” or “en-US”. From documentation seems it should be possible.
How to use manage language to change labels?
Use the Manage Languages tool from within the Admin Center to overwrite UI label values in any supported language (KBA 2269945). This feature can be very useful in the following situations mostly: You want to change default values of UI text (e.g., system text) to better reflect your particular business practices and culture
How can I add a translation to my Lightning Label?
This should work out of the box. If you go to your custom label, you can add a translation to it (there is a translation related list under your label). Then using {!$Label.c.labelName} in your Lightning Component will get the correct label according to the connected user language.
How to get translated value from label dynamically?
If you want this to be accessible from LWC, just annotate it with @AuraEnabled. If you want to use it via a wire it would also have to be cacheable, but if you call it imperatively (which I suspect is what you’d want to do) you don’t need it to be cacheable – that said making it cacheable makes sense since labels don’t tend to change much.
Where do I find the translation workbench in Salesforce?
The ability to translate component labels is part of the Translation Workbench. For more information, see “Enable or Disable Translation Workbench” in the Salesforce online help. This type extends the Metadata metadata type and inherits its fullName field. A two-character language code identifies each language, such as en.
Are there any English translations for Salesforce.com?
Salesforce offers full support for the following languages. Spanish (Mexico): es_MX Spanish (Mexico) defaults to Spanish for customer-defined translations. Thai: th The Salesforce user interface is fully translated to Thai, but Help is in English.
How to change the entered language in Salesforce?
To make the entered translations available to your users – select Active. Users can change their personal language anytime whether or not it’s active in the Translation Workbench. Selecting Active makes the translations available to the users in that language.