We use regex for this and it's pretty buggy. We can't use this for Objective-C, but we may be able to force Objective-C to call into Swift to get the localized strings it needs.