Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - DeepL is not putting content in their original place, it's putting inside an HTML tag (it shouldn't) #120

Open
patrickReiis opened this issue Oct 16, 2024 · 0 comments

Comments

@patrickReiis
Copy link

I am using the free tier, but it happens with the paid tier as well.

Steps to reproduce in Postman:
1 - Copy and paste the following endpoint, with a method of POST:

https://api-free.deepl.com/v2/translate

2 - Put the body as JSON, and copy and paste the following:

{"text": ["<span class=\"recipients-inline\"><span class=\"h-card\"><a class=\"u-url mention\" href=\"http://localhost:4036/@npub1vxd0dfst8ljvwva2egrpc53ve8ru78v8aaxfpravchkexmfmmu3sqnrs50\" rel=\"ugc\">@<span>npub1vxd</span></a></span> </span>Notícia como essa me embrulha o estômago."], "target_lang": "EN", "split_sentences": "1", "tag_handling": "html"}

3 - Click Send

As you'll see in the response, the word News is inside the <span> tag, but it shouldn't be.

This is a big deal because it hides the word News in the frontend UI.

Response returned: postman-response.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant