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

Paragraph with bold text under it will break continuity #413

Open
ptrstr opened this issue Mar 10, 2024 · 2 comments
Open

Paragraph with bold text under it will break continuity #413

ptrstr opened this issue Mar 10, 2024 · 2 comments
Labels
code quality Task to improve quality enhancement New feature or request good first issue Good for newcomers

Comments

@ptrstr
Copy link

ptrstr commented Mar 10, 2024

I've noticed that when HTML is formatted in such a way

<p>
    This sentence works until this HTML <b>broke</b>
</p>

The broke part will get translated on its own without context, which can lead to bad results.

I'm not too sure though how this could be tackled as sending all the text to a translator and knowing where the bold is will be kind of hard to figure out.

@vitonsky
Copy link
Collaborator

We have logic to batch a multiple texts into one translation request, the problem here is not all translators can translate multiple texts with a common context.

Thanks for your feedback, it is useful, i will research about how to handle such cases.

If it possible, would be nice to add couple examples with HTML and current (bad) translation + expected (good) translation.
Then i could test possible solutions on your cases.

@vitonsky vitonsky added enhancement New feature or request good first issue Good for newcomers code quality Task to improve quality labels Mar 10, 2024
@pojith
Copy link

pojith commented Mar 11, 2024

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Task to improve quality enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants