web development – How should a human translator translate a website into another language?

If it is necessary to translate all of the interface on the site from one language to the other, how can that be done competently?

It’s possible to give the HTML code to the translator and let him edit whatever is between the tags, but I don’t think this is the right way to go.

What data and in what from should be given to the translator?