Subscribe button is not translated by WeGlot

This is my English page created automatically by WeGlot. As you can see, Subscribe button is still in Turkish which is my source language. I’m aware that we can change the text on it from design settings but I don’t have any idea how to make it dynamically change by language.

How can I achieve a dynamically changing Subscribe button?

Hi there,

I see you’re having an issue with translating your Subscribe button. Sorry about that, but I’m here to help you get it sorted.

On our end, we can see that “Subscribe” is properly translated. However, if you’re still encountering the same issue, you can try dynamically translating the button.

The element can be dynamically generated and so Weglot will need to dynamically translate it. Here’s our documentation on how to translate dynamic elements: “How to translate dynamic content?”.

To find the CSS selector:

  • Right-click on the element you want to translate
  • Go to “Inspect” to open the console
  • In the “Elements” tab, use the arrow at the top left of the console to target the element
  • Right-Click on the element you want to dynamically translate
  • Go to Copy > Copy selector
  • Go to your Weglot Dashboard > Project Settings (Dynamic) > Dynamic Elements field
  • Paste the code in the box, then click on “Add”
  • Save your changes

Let me know if you need any further information. Additionally, feel free to reach out to our support team at support@weglot.com.

Hope this helps and have a nice day!

1 Like

Nice to see you here, @RaynefromWeglot ! I think that @isrky is referring to the floating button on the lower right, which is dynamically created by portal.min.js. (I visited their site and confirmed that it isn’t getting translated, although the subscribe at the top is.)

Any suggestions for how to target it for Weglot? Or if minor changes to that button would make it work right, I’ve got my fingers in the portal code anyway, could perhaps make them…