I checked some TOC plugins. Most of them are outdated or not compatible with multilingual sites. The one I found which allows to translate the title is LuckyWP Table of contents but it goes in timeout for whatever reason on 50% of my posts/pages.
Can you suggest a solution or some code for a TOC? I need only one level h2.