んだ」と

…, ”

→ の
phrase Rare #22,981
…,” んだ adds an explanatory or emphatic tone, and と marks the preceding words as a quotation.
JA: 「今日は休みなんだ」と彼女は言った。
EN: “I have the day off,” she said.

「でも、アマンダ、私には本当にそんな金はないんだ」とドムは丁寧に言った。

“But, Amanda, I really don’t have that kind of money,” Dom said politely.

「僕は本当は、その歴史の専門家なんだ」とニコラスが言った。

“I’m actually an expert on that history,” Nicholas said.

「同じことを繰り返している本も多いんだ」とモーリスが言った。

“A lot of books repeat the same thing,” Maurice said.

「どうやるのか気になっていたんだ」とモーリスが言った。

“I was wondering how you do it,” Maurice said.

「それで、今度はお願いがあるんだ」とマイケルは言った。

“So, I have a favor to ask you this time,” Michael said.

「町のためなんだ」と港務長が言った。

“It’s for the town,” said the harbor master.

「ええと、まだ持ち主はいないんだ」とマルコファーソンは言った。

“Well, it doesn’t belong to anyone yet,” Marco Ferson said.