function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marco_ValenteMarco_Valente 

Site Validation Password error message only ENGLISH

Hi,
i'm using the ligthining napili communities and in self registration process i used the Site salesforce class for validating password.
My default language in communities is Italian.

The Site class in the method "validatePassword", the error message returned in english!!

Why salesforce not translating the error message? Workaround?

Thanks
Regards
Best Answer chosen by Marco_Valente
Raj VakatiRaj Vakati
You need to move the Error Message from the apex class to Label and DO the translating .. Apex Classes Error Messages are not translated by default ...

All Answers

Raj VakatiRaj Vakati
You need to move the Error Message from the apex class to Label and DO the translating .. Apex Classes Error Messages are not translated by default ...
This was selected as the best answer
Marco_ValenteMarco_Valente
Thanks i will be remapped the standard error site class with custom label.

Regards.