+0
  1. It was to her credit that she never gave up.
  2. It was a credit to her that she never gave up.

Would you be kind enough to tell me whether there's a difference in meaning between 1 and 2?

(It seems to me that credit in 1 is used as uncountable and one in 2 as countable, but both of them look to mean "praise". So I think there's no difference in meaning.)

+1

There is hardly any difference in meaning. There is a faint difference in emphasis, that's all.