frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Do you use LLM for HTML translations?

2•Mooty•5h ago
I've came accross a good but quite hard problem to solve which is to translate HTML pages into whatever human langage.

I've started tinkering with DeepL which proposes this feature but results are quite off the rails because you cannot provide any context to it.

So well, it was a clear case for an LLM to me. After crafting a good context prompt, I've tried o4-mini from OpenAI and it's results are nearly perfect.

However came business around and I need to be able to this WAY faster, as a ~100ko page will take like a minute to generate, which is way too long for the end user.

I've optimised content a little (sending only html parts that are interesting) but it's still quite slow in the end (more than 10s). I'm thinking about translating html to json and do it back after translation, so it might be faster.

Does anyone do this as well ? Or has any insight of a better performing API/LLM for this problem ?

Comments

web5lab•45m ago
Yes, I’ve tackled this too. LLMs like o4-mini give great quality, but latency is a real issue for larger pages. One trick is converting HTML to structured JSON (just the visible text), translating that, then rebuilding the HTML. You can also parallelize translation and use faster models like Claude Haiku or Gemini Flash. For bulk tasks, traditional models like MarianMT via Hugging Face are much faster. Caching also helps a lot. Curious how your JSON approach works out!

Tell HN: I Lost Joy of Programming

3•Eatcats•12m ago•1 comments

Ask HN: How did Soham Parekh get so many jobs?

287•jshchnz•5d ago•396 comments

Ask HN: Has anyone else learned English just by reading tech posts (like HN)?

5•FerkiHN•5h ago•2 comments

Ask HN: Do you use LLM for HTML translations?

2•Mooty•5h ago•1 comments

Are there any noteworthy LinkedIn alternatives?

3•junaidkhalid•5h ago•3 comments

Ask HN: Took a break after burnout – what now?

5•BugsBunny1991•9h ago•7 comments

Ask HN: How is the tech scene in LA?

11•asdev•1d ago•13 comments

Ask HN: Any resources for finding non-smart appliances?

146•everyone•1d ago•120 comments

N8n AI Workflows – 3,400 Workflows and an LLM Prototype

5•sayedev•13h ago•1 comments

Ask HN: What's the verdict on GPT wrapper companies these days?

9•NewUser76312•15h ago•11 comments

Ask HN: What inspires you to persevere through adversity?

11•justanything•16h ago•12 comments

Ask HN: What Are You Working On? (June 2025)

439•david927•1w ago•1382 comments

Ask HN: What happened to W3C's PROV initiative to add provenance to the Web?

3•azhenley•17h ago•0 comments

Ask HN: Brick and Mortar Dev Agency

2•takklz•18h ago•1 comments

Which email clients work well with keyboard shortcuts?

3•tenzo•18h ago•3 comments

Ask HN: Freelancer? Seeking freelancer? (July 2025)

84•whoishiring•6d ago•209 comments

Ask HN: Worth leaving position over push to adopt vibe coding?

74•NotAnOtter•3d ago•89 comments

Ask HN: How do you deal with data backups in servers?

4•atomicnature•20h ago•4 comments

Ask HN: Who is hiring? (July 2025)

270•whoishiring•6d ago•402 comments

Ask HN: Advice for Starting a Hacker Space?

35•pkdpic•2d ago•36 comments

Ask HN: Who wants to be hired? (July 2025)

129•whoishiring•6d ago•378 comments

Ask HN: What's the greatest piece of non-dogfooded software?

4•nathancspencer•1d ago•7 comments

Proposal: GUI-first, text-based mechanical CAD inspired by software engineering

5•thinkmachyx•2d ago•10 comments

Ask HN: What's the 2025 stack for a self-hosted photo library with local AI?

226•jamesxv7•1w ago•120 comments

AI Power Internal Tools

4•DeonRob•14h ago•1 comments

Ask HN: How many communities HN it devs in C language?

7•FerkiHN•2d ago•14 comments

Ask HN: What old or outdated software have you never found a replacement for?

34•prisenco•2d ago•53 comments

Ask HN: How do I buy a typewriter?

6•indus•1d ago•14 comments

mTLS vs. HTTP Message Signatures: Tradeoffs in Securing HTTP Requests

2•getvictor•1d ago•3 comments

Why did not numpy copy the J rank concept?

14•jrank•3d ago•6 comments