argosopentech / argosopentech/translate-html

Issue in Nested HTML Tag Translation

Open
#19 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
60
Forks
11
PR merge metrics
No merged PRs in 30d

Description

When translating HTML content in translate-html using LibreTranslate, the translation often breaks or splits due to nested tags (e.g., Text). Currently, there's no built-in way to treat deeply nested tags as a single translatable unit, which causes the output HTML to be misaligned or structurally corrupted.

**Input HTML:**

```



View the complete range of




drawer systems here!



```
**Problem:**
Libre translate is considering `View the complete range of` and `drawer systems here!` as different sentence and translating them distinctively, resulting in incorrect translation.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the nested-tag example in the translate-html project with LibreTranslate and inspect how the HTML content is grouped before translation. No source file or test is named in the issue; done means nested text is translated as the intended unit without misaligned or structurally corrupted HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.