What's the best way to repair this floor joist?
Considering you are probably putting the shower on top of this, you should definitely sister on a joist as large as is feasible. Be sure it runs as far as possible, hopefully to the bearing points (walls, etc.).

I am assuming the joist in question is the one at the bottom of the picture. If not, the advice should still apply.