How to use other languages for the API interface error prompt of the user permission plug-in?

How to use other languages for the API interface error prompt of the user permission plug-in?
Do I need to modify the plug-in source code?

thanks