Exclude Search Box Results from Weglot Translations

Hi all,

We’re encountering an issue with translations in our web app using Weglot. Specifically, we need to exclude the results of a native search box(geographical addresses) from being translated. The problem is that when users perform searches, the translation of these results consumes a significant portion of our Weglot monthly limit. As a result, we have to clear translations every two weeks, even though we don’t need the search results translated.

What We’ve Tried:

Weglot Exclusion by ID:
We followed Weglot’s documented method of adding an ID attribute to the search box to exclude it from translation. However, this approach did not work for our search box.
Weglot support mentioned, “In fact, we can’t exclude script and as you can see below, the content is generated using a script that is automatically translated.

Page Exclusion:
We considered excluding the entire page from translation, but this is not a viable solution. The search box is located in the dashboard, and excluding the page would require us to use the Bubble app-text feature for multiple pages in four major languages.

Chrome Dev Tools:
We tried obtaining the search box ID from Chrome Dev Tools and targeting it with Weglot’s Exclude Elements feature, but this was unsuccessful as the css code only have the class and not the id property.

If anyone has encountered a similar issue or has insights into resolving this blocker, your advice would be greatly appreciated.

Thank you!

Hey there! You’ll have to get the CSS selector of the HTML node in which the search query is displayed. Here’s our support document on exclusions to help you.

Our support team is also happy to help you figure this out. If you need further assistance, could you email us at support@weglot.com with your website and the details in this post?

Thanks!

Cheers,
The Weglot team

This topic was automatically closed after 70 days. New replies are no longer allowed.