Custom error messages

hi all frinds
im using react , And I’m implementing a membership page,
I created a method and took user information and sent it to this method.
And in the method, I used the Accounts.createUser.
Accounts.createUser sends an error if the received information is incorrect.
I want these errors to be displayed in the language I want, not English. How can I edit these errors?

please guide me