NET
12 and maintain good conduct among the non-Christians, so that though they now malign you as wrongdoers, they may see your good deeds and glorify God when he appears.
Darby
12 having your conversation honest among the Gentiles, that [as to that] in which they speak against you as evildoers, they may through [your] good works, [themselves] witnessing [them], glorify God in [the] day of visitation.
KJV
12 Having your conversation honest among the Gentiles: that, whereas they speak against you as evildoers, they may by [your] good works, which they shall behold, glorify God in the day of visitation.