Add attr to documents and generate it in translate file

:earth_africa: