This T4 might be helpful. I didn't include it in the project though.

This does duplicate the code but the template can be dropped into a
project next to your other resx. Just edit the filename it is pointing
at.