Ensure custom error messages are translated