Two problems emerged recently with transcluding sections from a page marked up for translation.
The markup was something like:
<translate> ... text ... </translate>
*The #section-h function did not recognise the section at all, probably confused by the comment on the heading line.
*The #section function picked up the text between the <section begin> and <section end> tags, but did not process or drop the <translate> and </translate> tags.
See [https://commons.wikimedia.org/w/index.php?oldid=334514388] for an example.
The problems are blocking translation of about 200 Help pages on Wikimedia Commons.