Hi,
There are probably other ways, but I would suggest using our [alg_wc_related_categories_translate]
shortcode. To have the title translated to German and to English in WPML, please set out “Header” option to something like:
<section class="related categories">
<h2>[alg_wc_related_categories_translate lang="DE"]Zubehörkategorien[/alg_wc_related_categories_translate][alg_wc_related_categories_translate lang="EN"]Accessory categories[/alg_wc_related_categories_translate]</h2>
“Header” option is located in “WooCommerce > Settings > Related Categories > Single OR Archives > Template Options”.
Hope that helps. Please let me know if you have any questions.