Because Joseph her husband was a righteous man and was unwilling to disgrace her publicly, he resolved to divorce her quietly.
Berean Standard Bible (BSB)
Joseph, her husband, being a righteous man, and not willing to make her a public example, intended to put her away secretly.
World English Bible (WEB)
Then{G1161} Joseph{G2501} her{G846} husband{G435}, being{G5607}{(G5752)} a just{G1342} man, and{G2532} not{G3361} willing{G2309}{(G5723)} to make{G3856} her{G846} a publick example{G3856}{(G5658)}, was minded{G1014}{(G5675)} to put{G630} her{G846} away{G630}{(G5658)} privily{G2977}.
Strong's King James
(19) Now Joseph her husband being upright didn't want to shame her, planning to send her away (divorce) secretly.
The F.O.G
The F.O.G Message
and Joseph her husband being righteous, and not willing to make her an example, did wish privately to send her away.
Young's Literal Translation