そんなことをするなんて

that someone would do such a thing

→ そんな
phrase Rare #24,906
that someone would do such a thing なんて adds a tone of surprise, disbelief, or disapproval.
JA: 彼がそんなことをするなんて信じられない。
EN: I can’t believe he would do such a thing.

そんなことをするなんてひどい人ですね。

That’s a terrible thing to do.

そんなことをするなんて考えただけでも恥ずかしい。

I’m embarrassed just thinking about doing something like that.

彼がそんなことをするなんて私には考えられない。

I can't imagine him doing such a thing.

君がそんなことをするなんてばかげている。

It’s ridiculous for you to do such a thing.

そんなことをするなんて、きみは気でもちがっているのですか。

Are you out of your mind, doing something like that?

そんなことをするなんてきみには良心があるのか。

How can you do something like that? Don't you have a conscience?

そんなことをするなんて何と無分別な男だ。

What an imprudent man he is to do such a thing.