logoalt Hacker News

sajithdilshan • yesterday at 11:06 PM • 5 replies • view on HN

What would have been nice is that depending on the visitors IP address’s region, showing a localised message instead of fixed number of languages


Replies

Waterluvian • yesterday at 11:18 PM

This feels like a “falsehood developers think about localization.”

It’s always funny when I get French YouTube ads. As if YouTube is desperately trying to offload the adbuys anywhere they can by pretending that Canada must mean French.

➕ show 1 reply
Cidan • yesterday at 11:12 PM

I think the whole point is for it to be a static site that is easily distributed with little-to-no overhead, as it probably receives a non-trivial amount of traffic.

➕ show 1 reply
justinpombrio • today at 5:20 AM

That assumes that (i) every region has a primary language, and (ii) everyone in that region speaks that language, both of which are false.

(And false often enough that guessing language based on IP address works badly in practice, I hear.)

int0x29 • yesterday at 11:28 PM

Just check the Accept-Language header

erhuve • yesterday at 11:20 PM

I believe it's just using the official languages of the UN

➕ show 1 reply