Add back `localized` function which was accidentally removed