Refactor `localize` style parsing