i18n rules api cleanup