add attrs for translation hooks