fixes #3828 - set language locale for API messages and error responses