Add the ability to define excluded text via id attribute & data-* attribute

Being able to define excluded text by class is very useful, but expanding that to ids and data-* attributes would make this feature much more robust.

Could you look at allowing these two additional attribute types to signal excluded code?

2 Likes

Hi there, @IT_Vendors :waving_hand:

Thanks for sharing your idea with us!

Do I get it right that you need it to exclude a single instance of the word/phrase that is repeated on the page?

1 Like

Hi Max! We have model numbers on our pages that we would like excluded from being translated:

<span data-avb-catalog-list-product-model-number>ADDISONFULL</span>

We would like to add an exclusion to ignore any spans/text with the ‘data-avb-catalog-list-product-model-number’ data attribute.

The text within the span will always vary, but the data attribute will signify to ignore this span when translating. We build our pages with NextJS, so the class assigned is randomly generated, so unfortunately we cannot use the class attribute to reliably exclude these spans.

2 Likes

Got it, thanks for clarification!

We’ll have this idea in mind and see for more feedback from the Community :slightly_smiling_face:

1 Like