I ve been using this code for the slider on the frontpage:
http://www.chooseyourtelescope.com/
<?php
$currentlang = get_bloginfo('language');
if($currentlang=="fr-FR"):
?>
<div>Content in French</div>
<?php else: ?>
<div>Content in English (or other language)</div>
<?php endif; ?>
It was suggested by ChowKaiDeng here:
https://wordpress.org/support/topic/plugin-polylang-how-to-translateswitch-specific-contents-on-templates?replies=17
But now it s not working anymore, it stays in english. I tried to deactivate the other plugins and to restore the previous theme version but nothing changed.
(BTW my site is responsive and the slider is not displaying under 800px width. So for example you can't see the problem on mobile.)