Is it possible to add the translations for the messages displayed by default in standard lightning component?

For example for minlength attribute we will receive tooShort: Your entry is too short. I want to translate this message to different languages.

  • 1
    You can use custom lables and then get it translated? – Pranay Jaiswal Jun 29 '18 at 12:35

You can use custom labels.Using custom labels you can translate to different languages.

Please check this Post:


then use custom labels in your lightning component:

  • $Label.c.labelName for the default namespace

  • $Label.namespace.labelName if your org has a namespace, or to access a label in a managed package

for more Information check this document:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.