Website Translator isn't displayed on my website

Hello - Unfortunately, the button is not displayed.
Joomla 5.1.2 and Yootheme pro 4.4

I have inserted the code in the index.php (also at the template manufacturer under “User-defined code” - unfortunately both do not work). Is there anything else to bear in mind?
Greets Mathias

1 Like

Hi there @Mathias :wave:

Could you please send me a link to the page where you’ve tried to install the widget? I’ll gladly check it for you :wink:

Hi @Max with great pleasure: :wink:

1 Like

Thank you!

I’ve passed this issue to the devs. Once it’s fixed, I’ll report back :slightly_smiling_face:

As a temporary solution, you can add this script next to your widget’s installation code:

<script>
  const currentLang = document.documentElement.lang;
  document.documentElement.lang = currentLang.split('-')[0];
</script>

Works very well with the script - thank you very much!

2 Likes

Great! In the meantime, our devs fixed the issue globally, so you can remove this script :slightly_smiling_face:

Great! Thank you very much for the quick implementation!

2 Likes

You are very welcome!

If anything else comes up, we are always here for you :wink: