Add functionality to translate attributes.