frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Extract text and translate on every PR

1•danielandrews43•1y ago
One of the most tedious parts of frontend dev for our team is making sure all text is extracted to query strings for translation. We use i18n, and it’s great, but a lot falls through the cracks.

Have you set something up for your org on every pull request that pulls out text?

Comments

not_your_vase•1y ago
The last time I worked on a localized project, we had a technical fake language present in non-release envs. It was generated with every build (it was just a simple .po file, so easy to handle), and it was the same as English, but had an "x" at the start and end of each text, so you knew that it was "translated" (or at least it was translatable, and not hardcoded). QA included checking this fake language - if they found any text without X's around it, it was a clear sign of a i18n bug.
danielandrews43•1y ago
That's cool! We used machine translate to hindi for this which made it super obvious what was english / not as it was different character set (but made it hard to navigate)

Looking for something to help with DX though here, not QA

Scarcity is driving AI innovation outside Silicon Valley

https://restofworld.org/2026/scarcity-is-driving-ai-innovation-outside-silicon-valley/
1•colinprince•2m ago•0 comments

China Lures Foreign Patients with Cutting-Edge, Cheap Medical Care

https://www.bloomberg.com/news/features/2026-06-10/china-s-medical-tourism-boom-draws-foreign-pat...
2•polrjoy•2m ago•0 comments

Khronos Announces glTF Gaussian Splatting Extension

https://www.khronos.org/news/press/gltf-gaussian-splatting-press-release
1•lairv•6m ago•1 comments

Teenagers Stayed Overnight at Their School and Found Hidden Ancient Roman Ruins

https://www.smithsonianmag.com/smart-news/these-italian-teenagers-stayed-overnight-at-their-schoo...
2•thunderbong•8m ago•0 comments

Stretching a point: the economics of elastic infrastructure

https://ably.com/blog/stretching-a-point-economics-of-elastic-infrastructure
1•b-man•9m ago•0 comments

An Information-Theoretic Approach to the Computational Complexity of TSP

https://zenodo.org/login/?next=%2Fme%2Fuploads%3Fq%3D%26f%3Dshared_with_me%25253Afalse%26l%3Dlist...
1•Dori_Lee•9m ago•0 comments

The theory taking the rich by storm: China funds data center haters

https://www.npr.org/2026/06/10/nx-s1-5844328/us-china-data-centers-foreign-influence
2•beedeebeedee•12m ago•0 comments

We Used Agentic AI to Fix Kong Gateway's Flakiest Tests

https://konghq.com/blog/engineering/how-we-used-agentic-ai-to-fix-kong-gateways-flakiest-tests
3•dndx•22m ago•0 comments

Why are there an increasing number of outright unhinged high karma users on HN?

5•MichaelZuo•23m ago•2 comments

Shrubbery syntax for Racket

https://docs.racket-lang.org/shrubbery/index.html
2•azhenley•25m ago•0 comments

Wanted: Dead or Alive. Google Search Console

https://medium.com/@thesuperrepemail/wanted-dead-or-alive-google-search-console-17a2ed7424eb
3•mssblogs•27m ago•0 comments

Old Violins (1910)

https://www.gutenberg.org/cache/epub/78831/pg78831-images.html
3•petethomas•29m ago•0 comments

Bread and Cake Baking (1877)

https://www.gutenberg.org/cache/epub/78839/pg78839-images.html
2•petethomas•30m ago•0 comments

Nostalgia Is New for Some

https://www.marginpoints.com/essays/nostalgia-is-new-for-some
2•historian1066•32m ago•0 comments

Corca raised a $7.8M seed led by NEA, NVenture to democratize math for everyone

https://twitter.com/Corca_math/status/2064791873676288150
3•OxfordCommand•37m ago•0 comments

Brit workers waste nearly six hours a week 'botsitting'

https://www.theregister.com/ai-and-ml/2026/06/10/brit-workers-waste-nearly-six-hours-a-week-botsi...
5•Bender•39m ago•0 comments

OpenAI Considers Drastic Price Cuts, Anticipating War for Users with Anthropic

https://www.wsj.com/tech/ai/openai-considers-drastic-price-cuts-anticipating-war-for-users-with-a...
8•jrpelkonen•40m ago•0 comments

Xfce Ported to Rust-Written Redox OS for Better X11 Experience

https://www.phoronix.com/news/Xfce-Ported-To-Redox-OS
3•Bender•41m ago•0 comments

Inverse Rubric Optimization: A testbed for agent science

https://fulcrum.inc/2026/06/09/inverse-rubric-optimization.html
2•etherio•47m ago•0 comments

GM is betting on battery cells that don't use lithium

https://electrek.co/2026/06/10/gm-sodium-ion-battery-peak-energy/
2•Bender•47m ago•0 comments

Replit shows how vibe coding is getting its own financial stack

https://thenewstack.io/replit-shopify-storefront-integration/
3•AnhTho_FR•49m ago•0 comments

Google preferred sources is live

https://www.google.com/preferences/source?q=https://mainstreetwealth.ai&pli=1
6•novateg•51m ago•0 comments

Covered Models (Claude.com)

https://support.claude.com/en/articles/15425695-covered-models
3•wglb•59m ago•1 comments

Attention is all you need: Rohan Kumar on using social media for fun and profit

https://sfalexandria.com/posts/rohans-attention/
2•wahnfrieden•1h ago•0 comments

The End of the Coder?

https://cacm.acm.org/news/the-end-of-the-coder/
7•pseudolus•1h ago•1 comments

Are insecure code completions in PyCharm a vulnerability?

https://sethmlarson.dev/are-insecure-code-completions-a-vulnerability
2•12_throw_away•1h ago•0 comments

Fruit Machine (Homosexuality Test)

https://en.wikipedia.org/wiki/Fruit_machine_(homosexuality_test)
4•thunderbong•1h ago•0 comments

Anthropic's Fable Jailbreak (Circumvent safety nets)

https://github.com/0xSufi/fable-jailbreak/
5•binyu•1h ago•0 comments

How AI Agents Reshape Knowledge Work

https://research.perplexity.ai/articles/how-ai-agents-reshape-knowledge-work
2•gmays•1h ago•0 comments

Ask HN: Releasing code under AGPLv3, but want to block LLM reconstruction?

3•zionsati•1h ago•1 comments