How rewrite standart messages

Hello! I want my text in Russian to be shown in the identity server instead of the standard error and warning messages. Where can I replace the content of messages?