Deepl Translator (EN-CN)
-
{ "dictName": "Deepl Translator", "windowUrl": "https://www.deepl.com/en/translator#en/zh-hans/", "inputSelector": "#textareasContainer div[contenteditable]", "translationPrompt": "<word>" }
-
Thank you for the work. I edited it a bit to quote the
css
prop to make the json correct.Check it out.
-
@river Thank you for helping me correct the mistakes. This is my first time trying this kind of work, and I find it both novel and interesting.
-
Congrats, now you are a programmer!
Keep learning, the world is your oyster. -
@xiaomren
Oops, you added an extra}
after<word>
. Just a minor mistake, I fixed it. No worry -
@river I see. I keep this symbol because I've noticed DeepL translations are sometimes incomplete. For instance, when I feed it two paragraphs, it might only translate the first couple of sentences in the first paragraph, leaving the rest untouched. But after adding this symbol, I get a full translation. The only issue is that a "}" appears at the end of each translated text, which I don't quite understand. It's a temporary workaround, I suppose.
-
@xiaomren Aha, that's interesting. Apologize for the change, didn't know it's a workaround. Thanks for the explanation and effort. I reverted it back then.
-
@river These changes do offer some improvements. However, upon closer inspection, there are still some issues. While the translation is better than running it directly on the official website, there are still some missing sentences.
-
How about now? I changed it to a dynamic dict. Seems it's more accurate now.
-
@river After you modified the code, it runs perfectly. Thank you!
-
Crafting
Sculpting thoughts, writing code, making digital symphonies.
-
Sharing
Share what you have learned with pals!
-
Feedback
Find a bug? Have suggestions? Don't hesitate to tell me.
-
Dictionariez Trove
A place to enhance your Dictionariez.
-
Captionz Trove
A place dedicated to new & educational videos.
Trends
Dictionariez is an open-source tool that assists you in language learning; it supports multiple languages and offers a diverse collection of dictionaries.
Translate texts, images, and audio to 100+ languages instantly. Use TextPixie’s AI translator for fast, accurate, and contextually appropriate translations.