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? Jun 29, 2018 at 12:35

1 Answer 1


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:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .