Maybe you’re in the same situation like me. I’m maintaining a project I haven’t written and from time to time I’m modernizing the code base to make maintenance easier for me. I’ve generated a new Strings+Generated.swift file using Swiftgen and need to replace all the NSLocalizedString(“”, “”) occurences with my fresh L10n enum.
A cumbersome task.
Luckily for you, I’ve written a python script that does that for you – https://github.com/shadzik/nslocalizedstring2swiftgen . Take a look and enjoy!