# Blacklist for words to exclude from translation

**URL:** <https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810>\
**Category:** General Questions\
**Tags:** website-translator\
**Created:** [March 13, 2025, 12:52pm UTC](https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810 "2025-03-13T12:52:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Wegmann](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Daniel\_Wegmann](https://community.elfsight.com/u/Daniel_Wegmann)\
**Post date:** [March 13, 2025, 12:52pm UTC](https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810/1 "2025-03-13T12:52:47Z")

</div>

a blacklist for words, that should not be translated would be nice.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 13, 2025, 2:04pm UTC](https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810/3 "2025-03-13T14:04:36Z")

</div>

Hi there, @Daniel_Wegmann 👋

The Translation Exclusions feature is already available in the widget. You can choose which parts of your website should stay untranslated. Just add the class names of the elements you want to exclude from translation:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/6/9/69a038a525219babc8ccf70ca9d7b13b9812d327.png) ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/8/e/8e0a51a40ebdbd9bfe39881ab9e7c325f140c4b5.png)

  

If this feature doesn’t work for you, please send me a link to the page where the widget is installed and specify the words you’d like to exclude from translation 🙂

---

<div class="post-metadata">

**Author:** ![Daniel\_Wegmann](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Daniel\_Wegmann](https://community.elfsight.com/u/Daniel_Wegmann)\
**Post date:** [March 13, 2025, 2:15pm UTC](https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810/4 "2025-03-13T14:15:45Z")

</div>

Hi Max,

thank you for your response.

i already saw the „exclusions“ tab, but as you said: i only can exclude whole areas.  
but i´d like to exclude certain names (like cities or person-names).

for example: the city name „neuenkirchen“ (german) would translate to „newchurch“ in english. but the city name should not be translated at all.  
another example: the german surname „mannfred“ translates to „human peace“ - but i need the correct name.

and a weird example: the german city name „vechta“ translates to „old“ in english. but that’s not at all what it means  
anotherone: the german city name „Dinklage“ translates to „your complaint“ which in german would be "Deine Klage“.

so a blacklist with words, that should not be translated all would be a good solution i think.

because these words are not related to any classes or areas, the exclusion tab is no help for me.

i hope you understand, what i mean.

regards,  
daniel

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 13, 2025, 2:34pm UTC](https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810/5 "2025-03-13T14:34:32Z")

</div>

Got it!

I guess there is a chance to exclude these words from the translation with a custom script. Could you please send me a link to the page where this widget is installed? I’ll be happy to check it with the devs 🙂

---

<div class="post-metadata">

**Author:** ![Daniel\_Wegmann](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Daniel\_Wegmann](https://community.elfsight.com/u/Daniel_Wegmann)\
**Post date:** [March 13, 2025, 2:43pm UTC](https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810/6 "2025-03-13T14:43:11Z")

</div>

[https://lkv-game.de/gamesystem/fragen.php?args=testkat](https://lkv-game.de/gamesystem/fragen.php?args=testkat)

it´s a game system with multiple choice questions.

i sent you a test with only twi different questions, you can click „reload“ in the lower left corner to reload the questions

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 13, 2025, 4:46pm UTC](https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810/7 "2025-03-13T16:46:16Z")

</div>

Thank you!

I’ve passed this on to the devs and will let you know once I have their response 🙂

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [March 18, 2025, 11:25am UTC](https://community.elfsight.com/t/blacklist-for-words-to-exclude-from-translation/106810/8 "2025-03-18T11:25:53Z")

</div>

Thank you for waiting!

We’ve removed the multiple choice options We’ve added the code to the Custom JS section on the Settings tab of your widget’s settings:

```auto
   let formAuth = document.querySelector("#formAuthentication");
    if (formAuth) {
        let categoryQuestion = formAuth.querySelector("#categoryQuestion");
        if (categoryQuestion && categoryQuestion.textContent.includes("geht das jetzte cht")) {
            let answers = formAuth.querySelectorAll("[id^='answer']");
            answers.forEach(answer => {
                answer.classList.add("noTranslate");
            });
        }
    }

```

  

This code assigns a custom class (noTranslate) to the elements you wanted to exclude.

Also, we’ve added noTranslate to the Translation Exclusions. Please check it out and let me know if it’s fine 🙂
