TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Don't guess my language

667 点作者 e-topy6 天前

84 条评论

elric6 天前
Not accepting Accept-Language is one of my major pet peeves. What makes it worse is that many multilingual websites translate their language-switching buttons and the list of languages to the current language .... which is beyond fucking stupid and defeats the purpose. Wikipedia does this right. The button to switch languages is clear, using a universal multilanguage icon, and a list of languages (using the name of the language in that same language) in alphabetical order, with the most likely candidates on the top (presumably based on geoip).<p>E.g. an English Wikipedia page will present me with the following language suggestions:<p><pre><code> Suggested languages Deutsch Français Nederlands </code></pre> When you assume a language, you make an ass of you and of me. Don&#x27;t be an ass. Be like Wikipedia.
评论 #44030759 未加载
评论 #44029340 未加载
评论 #44028700 未加载
评论 #44029701 未加载
评论 #44029986 未加载
评论 #44029846 未加载
评论 #44031531 未加载
评论 #44029857 未加载
评论 #44033748 未加载
评论 #44030316 未加载
tapia6 天前
I also hate the youtube &quot;feature&quot; that translates the titles of videos to your setting&#x27;s language. This is so annoying. I can understand English and don&#x27;t need these automatic translations.
评论 #44029902 未加载
评论 #44028542 未加载
评论 #44029524 未加载
评论 #44028741 未加载
评论 #44028601 未加载
评论 #44029740 未加载
评论 #44028527 未加载
评论 #44028624 未加载
评论 #44029979 未加载
评论 #44028572 未加载
评论 #44029653 未加载
评论 #44029648 未加载
评论 #44028613 未加载
评论 #44028818 未加载
评论 #44030130 未加载
评论 #44028551 未加载
评论 #44029529 未加载
评论 #44029897 未加载
评论 #44029727 未加载
评论 #44030003 未加载
评论 #44030895 未加载
评论 #44028620 未加载
评论 #44034133 未加载
评论 #44032374 未加载
bunderbunder6 天前
So much this. I also hate the implicit assumption that everyone understands just one language that&#x27;s baked into this kind of design. I can comfortably read in four languages, and naturally prefer the original language to (typically) bad localization. So your guess at what language I would prefer based on my IP is virtually guaranteed to be wrong. Seriously, just look at what languages I&#x27;m already telling you work for me. There&#x27;s no reason to assume I&#x27;m not smart enough to correctly configure my browser&#x27;s language settings.<p>It gets even worse with YouTube and their awful AI dubbing that&#x27;s always on by default. So now for solidly half the videos I watch, I need to (1) open it, (2) click through the settings to turn off the AI dubbing, and then (3) rewind back to the beginning and start over. It doesn&#x27;t take a lot of time, but it&#x27;s incredibly annoying.
评论 #44030558 未加载
评论 #44030983 未加载
doix6 天前
My biggest annoyance is with Google. They know who I am, they know I am traveling, they know my language preferences (English) and yet I still get language based on my location on certain pages.<p>I let you track me Google, please use it for some good UX and not just advertising.
评论 #44029679 未加载
评论 #44028744 未加载
评论 #44028835 未加载
评论 #44029903 未加载
评论 #44031306 未加载
评论 #44048799 未加载
评论 #44029548 未加载
评论 #44029063 未加载
评论 #44032854 未加载
评论 #44028490 未加载
评论 #44030712 未加载
评论 #44028790 未加载
xorcist6 天前
Much more importantly: Never <i>ever</i> auto-translate content to the user&#x27;s language.<p>Present what languages you actually have the data in. The user is smart enough to click the &quot;translate&quot; button <i>in the web browser</i> should they want. That translation is also likely to be better quality.<p>English is not my first language. Or my second. But I understand it well enough to work in it every day. And I never ever want to wade through auto-translated garbage just to find the right button to read the original English version. Because for some reason this is only a problem for English, web sites using other locales never do it, which should be indication enough that international visitors hate it.<p>If you ever think about using machine translation tools for you web site, first you must do a full translation round trip for every language before publishing. Translate, paste back the result and translate back. That is roughly what you intended to publish. Don&#x27;t do it.
评论 #44031294 未加载
评论 #44034663 未加载
makeitdouble6 天前
&gt; Every browser sends an Accept-Language header. It tells you what language the user prefers, not based on location, not based on IP, based on their OS or browser config. And yes, users can tweak it if they care enough.<p>This is also a broken assumption.<p>First, Accept-Language is an ordered list, and most daily-multilingual people don&#x27;t have an absolute order of preference, and more a topical list of preferences.<p>If I read an English news site that has a translated French version, it doesn&#x27;t matter if I&#x27;m most proficient in French, I&#x27;ll want the English version.<p>Then, as an affect of the first point, users will specify their most practical language, not some actual preference. For instance local non-English sites tend to do less shenanigans than international English ones, so having one&#x27;s language set as English only will force English display for the former, with few impact on most other sites.<p>A French site ignoring all preferences and just pushing the French version by default actually helps in that case.<p>If anything, I just wish site owners stopped trying to be cute or clever and just had a very obvious and quick interface to switch to other versions. Wikipedia does it decently well for instance.
评论 #44028649 未加载
评论 #44028629 未加载
评论 #44028516 未加载
Ensorceled6 天前
I worked on a project where I was responsible for implementing accessibility and multiple language support for a government adjacent site. I used Accept-Language to decide which of our supported languages to use as the default. The PM over-ruled that decision and forced a EN default.<p>The accessibility auditor put &quot;use Accept-Language&quot; into they audit report as a &quot;red&quot; item and then ripped the company a new one when they found out it had been initially implemented that way but then reverted.<p>I got another couple of weeks of contract work for this and other such stupidity.
bemmu6 天前
Seems this is a free-for-all to drop language gripes, so here&#x27;s mine about Apple TV.<p>Have a family member who only speaks Japanese. My Apple account is in Finland. We wanted to watch The Martian together, but can&#x27;t select Japanese dub even though that audio track definitely exists. They just don&#x27;t show you the options not relevant to your account country, and the only way around is to change your whole Apple account to a new country.<p>Which you cannot do while you have an active Apple TV subscription.<p>End result: unable to watch Apple TV as a family.
评论 #44029661 未加载
评论 #44029791 未加载
donatj6 天前
I have told the story here before, but I built a neat little system to parse Accept-Language weighing the users priorities and using the closest thing we have on offer to the users preferences. As an example, we have a Brazilian Portuguese translation but not Portugal Portuguese, so we would offer the prior to users requesting the latter for instance unless they had a lower priority but more exact match.<p>From my technical standpoint it worked really well and the code was very slick. It was a lot of fun to build.<p>From a user standpoint most of our users really just wanted English regardless of their Accept-Language header. They had the option to change it in the footer but this apparently wasn&#x27;t obvious enough.<p>We just ask now, and our users are happier.
评论 #44028656 未加载
评论 #44028515 未加载
评论 #44031260 未加载
评论 #44040341 未加载
fabian2k6 天前
It&#x27;s entirely ridiculous when you&#x27;re abroad. Also annoying when in your home country, but the localized versions are not equivalent like e.g. programming documentation. Even in the ideal case you&#x27;d probably prefer the English original, but often they&#x27;re machine-translated anyway and much worse.<p>Another extremely annoying thing I&#x27;ve noticed more often now are machine-translated versions of content in the search results. Reddit for example does this now, and it&#x27;s just terrible. One of the main reasons I use non-English search terms is to get non-English results, e.g. because I&#x27;m looking for information on topics that is not globally applicable.
评论 #44029847 未加载
评论 #44030085 未加载
vaylian6 天前
I really wish for a language setting that says: If the original text is in one of the following languages, use the original text. I might not be equally fluent in all of those languages, but reading the original text is better than reading a translation most of the time.
评论 #44028482 未加载
评论 #44028418 未加载
评论 #44028460 未加载
nottorp6 天前
Don&#x27;t guess what currency I want to pay in either by the way.<p>Your payment provider&#x27;s automatic conversion is most likely more predatory than my bank&#x27;s so I don&#x27;t want to use it.<p>And even if you guess my location right, how do you know I want a badly&#x2F;machine translated web site?
评论 #44028714 未加载
评论 #44035730 未加载
评论 #44029090 未加载
评论 #44028481 未加载
swiftcoder6 天前
Yeah, this is has become of pet peeve of mine since moving to Spain. US sites that automatically redirect me to their Spanish site (which often doesn&#x27;t have the actual article the original link pointed to!)
评论 #44034889 未加载
评论 #44028419 未加载
hahn-kev6 天前
As much as I agree Accept language should be enough, the problem is that English is the default value, so if it&#x27;s default it&#x27;s likely to be wrong so I understand guessing because most people don&#x27;t know you can tell the browser what language you want to use. Partly to blame is also the websites that don&#x27;t have other languages can&#x27;t respect the header anyway. I&#x27;ve had plenty of users complain about localization issues and I have to explain that they can just tell the browser what language and region to use.
评论 #44030565 未加载
评论 #44030008 未加载
评论 #44029995 未加载
southernplaces76 天前
One of the many, many tedious things about the modern globe-spanning internet, used by hundreds of millions of people who regularly travel far and wide, is this bizarre, stupid forced algorithmic balkanization in which you&#x27;re pigeonholed right into either being denied access to certain content based on your location, or having your supposed language tendencies modified by default.<p>I&#x27;m not sure what the purpose of this idiocy is. Is it a dark pattern of some kind? Or is it just so hard for grey, cubicle-dwelling functionaries at companies that are themselves often very international to set systems for leaving one&#x27;s language defaults static unless otherwise adjusted by said site user?<p>If you&#x27;re already tracking me and every single one of my digital activities through my devices, then at least give me some modicum of convenience from all the bother.
leonheld6 天前
While others have expressed sentiments about YouTube and Google, let me tell you what I really hate - translated reddit posts.<p>They&#x27;re polluting search results and it&#x27;s the ultimate disrespect against multi-lingual users... it&#x27;s made my life hell when trying to find localized information (for example, in Portuguese), when my computer is set to Portuguese but I&#x27;m searching in English.
评论 #44029476 未加载
alias_neo6 天前
Before we even get as far as the wrong language being chosen; The GeoIP databases are rarely even up to date so they&#x27;ve got you in the wrong location to begin with.<p>I&#x27;ve been on static IPs for a decade or so; my last home&#x27;s static IP was regularly Geo-located to Romania, the next one to the Netherlands, and sometimes even further afield; I&#x27;m in the UK.<p>I started to have a heart attack just yesterday because Zenarmor on my OPNSense box was suggesting that a particular device was sending traffic to a region it has no business sending traffic to; turns out the DB is just wrong and a quick search indicated it actually (currently) belongs to the UK.<p>In a separate incident (also yesterday, as I then got into investigative mode), I installed Rethink on my phone, which suggested, yet again, that devices (including my phone itself) were sending traffic to places they shouldn&#x27;t be; again, false alarm, turns out they were all UK IPs, one of which being my own static IP which was being wrongly attributed to another region.<p>If this part of locating the IP can&#x27;t even universally be done correctly; why on earth is anyone even considering trying to use it to guess a person&#x27;s language.<p>EDIT: The result of these issues, particularly with my home IPs usually manifests in certain sites displaying in languages and with currencies neither I nor my family speak&#x2F;read or understand, for me I&#x27;m used to it and will look for where&#x2F;how to change the language&#x2F;currency, but for my wife and kids it&#x27;s just confusing.
mynegation6 天前
Here is one big reason some sites do geolocation nevertheless: pricing and legal. Does not matter what language you speak - they still have to look up proper prices in your local currency and offer you country or region-specific deals and legal language. E.g. in Canada Quebec limits what kind of sales or raffles you can offer so websites prepare different site copy. Yes, there are French speaking people outside Quebec and English speaking people in Quebec, but company may not have resources and time to prepare 4 copies instead of 2.
评论 #44028945 未加载
评论 #44028965 未加载
knorker6 天前
Also: Don&#x27;t guess my <i>units</i>.<p>Why oh why does Google Maps think that &quot;miles&quot;, &quot;feet&quot;, and &quot;yards&quot; are words that have any meaning at all?<p>Only like a 20th of the world even knows what these obscure things are. Just because I&#x27;m currently located in a country that nominally uses these arcane units doesn&#x27;t mean that <i>I</i> know what they are.<p>Oh you can change it to real units temporarily. But if you look away for a split second it changes it right back.<p>I&#x27;m LOGGED IN. How could you not remember?!
评论 #44040246 未加载
anilakar6 天前
Going one step further: do not guess my regional preferences from my language. I want to have an American English UI but use little-endian dates, whitespace and comma as thousands and decimal separators, ISO week numbers in calendars (with Monday being the first day of the week), and metric units. I want English subtitles, but not ones meant for the hearing impaired.
评论 #44028691 未加载
gield6 天前
This is a real pain in the ass in Belgium. Many websites assume I speak French while my native language is Dutch. Some websites only offer a French version of their Belgian storefront, even though Dutch accounts for ~60% of Belgians. I can&#x27;t imagine what it&#x27;s like for German-speaking Belgians.<p>This is not only an issue on websites but also on apps. For example, the Books and Podcasts apps on iOS show me both Dutch-speaking and French-speaking titles. I tried to raise this issue back when I worked at Apple but they only have 1 storefront per country and didn&#x27;t feel like changing it.
评论 #44029838 未加载
评论 #44029752 未加载
avhception6 天前
Also: don&#x27;t guess shipping options or other stuff based on my browser&#x27;s language!<p>My computers are all set to English even though I&#x27;m a German living in Germany, and I absolutely hate it when local business websites give me the &quot;we don&#x27;t ship abroad, sorry&quot; just because of my browser&#x27;s language settings.
pyb6 天前
I don&#x27;t understand why Google, of all sites, picks your language based on your IP. It ignores not only Accept-Language, but my Google Language settings as well. Their language handling seems to be getting worse over time. Not to mention the long-gone days where you could go to google.co.uk to get UK content.
tuetuopay6 天前
Can we also stop tying e-commerce languages to the commercial zones?<p>Yes, I want my HPE or Dell or FS.com website to be in English but still get the French catalog and warehouses and VAT. Especially for tech, where the lingua franca of english goes so deep that most people don&#x27;t bother to translate technical terms to their native language. Heck, I don&#x27;t know most of those in french!
sgt6 天前
And also make it easy on the site to change languages. Just because my OS is in US English, doesn&#x27;t mean that I don&#x27;t prefer certain sites to be in other languages when I choose to. Many of us are multilingual.
评论 #44028473 未加载
pif6 天前
I think this is a case where it is unfortunate that the biggest players are from the USA, because they are notoriously mono-lingual and cannot fathom what it means to know more than one language.<p>If they did understand, no site would ever propose you an automatic translation into your primary language over the original text written in any other of the languages you can read.
zetalyrae6 天前
This was the bane of my existence when I lived in Uruguay! Despite having the Accept-Language header set permanently to en_US, Google would constantly reset my UI language to Spanish, despite being logged in and having the account language set to English.<p>The worst offender was eBay which would machine-translate listings from English to Spanish.
benterix6 天前
&gt; No, “but the big websites do it” doesn’t make it right.<p>Also, it&#x27;s only partially true, e.g. Amazon doesn&#x27;t force the language at all, and while it presumes the country of delivery (which makes perfect sense as not all products are available everywhere), it explicitly nags me about it so I can change it with one click.
diggan6 天前
As someone who lives in Spain, but prefers to browse the web in English and has all my computing stuff setup in English, good look convincing the world to change this :) It&#x27;s been utterly broken for as long as I can remember (back when I had a 56k modem) and it&#x27;ll probably remain so.<p>It&#x27;s a uphill battle where you cannot convince others, so the best thing you can do is figure out how to adjust your own setup to make it less of a hassle.<p>&gt; Do it right or don’t do it at all.<p>I&#x27;m fairly sure we wouldn&#x27;t have the internet nor the web if everyone thought like this. I personally also strive for making things as good, right and correct as possible, but obviously I cannot force others to think alike, especially for-profit businesses that don&#x27;t really care about &quot;correct&quot;, only about &quot;good enough&quot;.
cessor5 天前
It&#x27;s easy to make Django react to &quot;Accept-Language&quot; headers, I love how the LocaleMiddleware supports it out of the box [1]. I implemented automatic language detection to show either German or English content and was surprised how many users hated it. We&#x27;re located in Germany but a lot of people have their browser set to English for some reason, yet they still expect to see pages in German. Of course I had provided an explicit language switch but many users did not like the site guessing their language.<p>[1] <a href="https:&#x2F;&#x2F;docs.djangoproject.com&#x2F;en&#x2F;5.1&#x2F;topics&#x2F;i18n&#x2F;translation&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.djangoproject.com&#x2F;en&#x2F;5.1&#x2F;topics&#x2F;i18n&#x2F;translatio...</a>
jacknews6 天前
What&#x27;s really annoying is when it sets the script to the local language which could be something like telugu, and then the writing is unreadable if you can only read the latin alphabet.<p>And then the &#x27;change language&#x27; menu is rendered in the unreadable script.<p>&lt;Cough&gt; google maps, in fact most google apps.
foft6 天前
In Switzerland pretty much all sites have a setting for French, German, Italian and often English. It is very much a multi-language country.<p>It is great to be able to select individually per site. I often like to use the native French and just drop back to English if its technical language.<p>I do find that every site has the setting in a different place which is annoying, it would be great to be able to select it in a standard place on the browser.<p>The worst offenders are the single language per country sites. For example Ebay insists on only using German in Switzerland, which is rather frustrating since I only know English and French so far.
1vuio0pswjnm76 天前
How many other things are websites guessing?<p>Are biased heuristics for the benefit of (a) the website user (the ad target) or (b) the so-called &quot;tech&quot; company and its advertiser customers?<p>What other HTTP headers are websites ignoring?
anuraj6 天前
In India, if you don’t know the user’s language precisely - just default to English which is the only business link language. Using an alien language like Hindi to non Hindi speakers will backfire badly.
deanc6 天前
I live in Finland where they have two native languages: Finnish &amp; Swedish. In a lot of places you&#x27;ll see both the Finnish &amp; Swedish place name on road signs. Without getting into politics, it&#x27;s a good assumption to assume that Finnish is the mother-tongue of most of the population - with some areas having Swedish as their native language but also perfectly capable of speaking Finnish fluently.<p>I have my phone&#x27;s language set to English as a native English speaker. Google maps reads me the Swedish road signs, in English.
评论 #44029899 未加载
评论 #44029532 未加载
评论 #44030439 未加载
breadmakerlc6 天前
I hate that this is a thing on physical products aswell. Panasonic being the latest offender by &quot;supporting&quot; my language. Then, when opening the safety instructions for the machine it reads grammatically correct but materially incorrect advice. Someone not following through with enough critical thinking could end up killing themselves.<p>Reading up on the english version it becomes clear it was machine-translated with zero persion checking on if any of it was proper.
estebarb6 天前
It is particularly annoying with Google. They recently forced results translations, which are of extremely bad quality. So, even if I&#x27;m searching for computer science topics or machine learning (where I&#x27;m only interested in English results) they insist that I must speak spanish and read useless translations.<p>I ended up switching to Bing just because this issue. Google is absolutely useless for me now.
hnfong6 天前
Every couple months, Facebook&#x27;s web interface glitches out and displays the geolocation-based language instead of my preferred language in parts of the UI.<p>I don&#x27;t know how that happens. Like, do individual teams within Meta have to re-learn that users in their own system have a language preference? (Not even talking about Accept-Language, it&#x27;s a Facebook user setting.)
评论 #44029780 未加载
MandieD6 天前
The most useless thing Google Maps does on my US-localized phone here in Germany: literally translates the proper names of businesses. For example, listing Stoff Bauer as &quot;Fabric Farmer&quot; in the results when I search for &quot;Stoff&quot; - the reverse of helpful (Bauer is a very common German surname, but also literally means &quot;farmer&quot;).
RamblingCTO6 天前
Yeah I&#x27;ve worked with geolocation databases in the past and they&#x27;re essentially just hot air. It&#x27;s wild that even google can&#x27;t guess my location anywhere close to home. And I live in a big german city, it wouldn&#x27;t be that difficult to be right. But they&#x27;ve actually never been right about my location. Sketchy is a fitting description.
评论 #44028425 未加载
donohoe6 天前
When we added translation features to our news site I went down this rabbit hole and wholly agree with the author. I checked what others were doing and very often there was this ip lookup happening, and then a redirect or other unnecessary behavior.<p>In our case, less is more. We decided to not do any of that, and were a bit paranoid that maybe we were going against a &#x27;best practice&#x27; somehow?<p>All we do is look at <i>navigator.language</i> to get the language code:<p><pre><code> const userLanguage = navigator.language.split(&#x27;-&#x27;)[0] </code></pre> and if we support that language then we will change the &quot;Translate&quot; button label to that language and default behavior to shortcut to that language version (you can still get the full list).<p>Thats it. Keep it simple.<p>Example: <a href="https:&#x2F;&#x2F;restofworld.org&#x2F;2024&#x2F;filipino-ai-chatbot-launches-2025-local-languages&#x2F;" rel="nofollow">https:&#x2F;&#x2F;restofworld.org&#x2F;2024&#x2F;filipino-ai-chatbot-launches-20...</a><p>(translation UI in the byline area, under lead image)
burnt-resistor5 天前
This reminds me of AliExpress that constantly corrupt its language (but not country) preference by randomly serving me a foreign language not in my <i>Accept-Language</i> list.<p><i>Language</i> determination should be, by decreasing order of preference:<p>1. URL param (temporary override)<p>2. Cookie (optional, set by a flag image list drop-down conflating country with language)<p>3. Accept-Language (prefix) (optional)<p>4. GeoIP (guessing at conflating language with country by demographics as a starting point)<p>Country, by decreasing order of preference (for pricing, shipping, legal, regional content):<p>1. URL param (temporary override)<p>2. Cookie (optional, set by a shipping address or preferred region preference)<p>3. Location (optional)<p>4. Accept-Language (suffix) (optional)<p>5. GeoIP (guessing at current location as the desired country of interest)<p>Note: It&#x27;s important to make a default guess at the statistically most likely possibility to reduce the burden on the most users, but not prevent users in the US from using the site&#x27;s French i18n.
PeterStuer6 天前
A sad example is Amazon Prime Video. &#x27;I see you&#x27;re from Belgium so I&#x27;ll serve you a lott of films dubbed in French exclusively. My native tongue is Dutch, but I prefer watching films in their original version, not dubbed.<p>(Btw, my Prime sub is on the German Amazon, but they don&#x27;t care. You&#x27;re from Belgium so French it is)
the_snooze6 天前
Not just language. Some retailers&#x27; websites (e.g., Target, Home Depot) use IP geolocation to guess the nearest store to you. It&#x27;ll even override your preferred store if you set it to the correct one earlier. If you&#x27;re on a cellular connection, it&#x27;s absolutely useless.<p>To anyone working in tech: stop trying to outsmart the user.
yfkar6 天前
Once my Google suddenly turned into Hebrew (I&#x27;m Finnish so that was pretty wtf). It was around the 2023 Hamas attacks so I initially wondered if I&#x27;d been hacked by some pro-Israeli group. Soon I realized it only happened if I used my home network and then restarting my router to get a new IP fixed it.
Peanuts996 天前
Whenever I&#x27;ve visited Aliexpress (for cheap ESP32s of course) I seem to only get served the French version of the site despite having a UK based IP, UK language flags and actually telling the site to use the GB store. Next time I visit though it will display in French again.
评论 #44030811 未加载
Discordian935 天前
I think there&#x27;s some too down agenda to force people into bilingualism, big tech doesn&#x27;t like how the internet of the 00s and 10s made many people polyglots that look behind their borders&#x27; information and media markets.
VeninVidiaVicii6 天前
Here I am losing my mind. My phone’s set to Portuguese (EU), I live in the US, and somehow I get ads in German and Spanish, and news exclusively for Portugal. No ties to Germany at all. Just lost in some algorithm’s fever dream.
评论 #44031111 未加载
nightfeather6 天前
Accept-Language still cause quite a bit annoyance to me though. Because the fallback rule most implements still follows similar assumption as the first point in this article. Languages in the same group doesn&#x27;t mean the user would accept it.<p>I don&#x27;t care if there are any other auto-translated thing that you though it&#x27;s close enough because they have same prefix that would help.<p>NO, absolutely NO.<p>I even specified the en-US or any other language that original content uses as the secondary candidates, then most just ignores it and serves randomly translated thing that you think would be close enough because you can&#x27;t tell.<p>Just please, follow what user asked first.<p>Edit: formatting
jillesvangurp6 天前
There&#x27;s also a commercial argument here. If your website or app sells stuff, you might want to care about your audience and addressing them in their own language.<p>There are hundreds of millions of people around the world that aren&#x27;t fluent in the local language of wherever they are. Many of them probably speak English. Quite a few of those are possibly not that poor either and have disposable income.<p>So, if your business is selling stuff online, you could do worse than serving up stuff in English when being informed by the Accept-Language header that that is a preferred language. It&#x27;s not that hard.
tsukikage6 天前
Don&#x27;t guess my anything. If you&#x27;re not sure what I want, ask, or at best do nothing. You don&#x27;t actually know what I want, and every time you decide you think you do, you make everything worse, not better.
harvie6 天前
Me: Visits Morroco (or pretty much any other country), has smartphone set to english. Also me: Gets youtube ads in Berber language. Has no idea what the ad is about or why someone would pay google to show it to me.
FinnLobsien6 天前
Another annoying version of this is localized google results. I&#x27;m originally from country A, live in country B, but work in English, which is not the language of either place.<p>But google will then localize results to where I am, which typically deprioritizes English results because I&#x27;m not in an English speaking country.<p>You can set your google settings to act as if you&#x27;re in the US permanently, but then googling anything local&#x2F;regional will serve results aimed at people a continent away.<p>All this &quot;guessing what the user wants&quot; has become detrimental to actual UX.
mcv6 天前
&gt; If you want to use GeoIP, fine — but only for currency, shipping, legal stuff<p>Possibly not even then. Shipping should depend on the address it&#x27;s shipped to, not the IP. Currency, I prefer in your original currency. I don&#x27;t want you to convert currency for me, because my bank does it cheaper.<p>And of course geoIP can be wrong because of VPNs. Only use it when other methods like user preference and `Accept-Language` or similar have failed, and make it easy for the user to correct your wrong assumptions.
binarymax6 天前
Timely. I’m working on this right now for a product and have everything in place using the accept-language header and then adding a url param.<p>I’m currently agonizing about how to let the user change their language, because I want to respect locale as well (es-MX vs es-ES for example). And I haven’t found a good UX pattern for changing language+locale. I’ll likely just implement a big list that the user can select, and have the current language be a link that they can click to change via a modal.
评论 #44028723 未加载
latexr6 天前
&gt; Let the user change it if needed (and remember that choice with a cookie or URL param)<p>As a reminder, such a cookie would <i>not</i> require a cookie banner.<p><a href="https:&#x2F;&#x2F;commission.europa.eu&#x2F;resources&#x2F;europa-web-guide&#x2F;design-content-and-development&#x2F;privacy-security-and-legal-notices&#x2F;cookies-and-similar-technologies_en" rel="nofollow">https:&#x2F;&#x2F;commission.europa.eu&#x2F;resources&#x2F;europa-web-guide&#x2F;desi...</a>
closeparen6 天前
One reason this happens: the product is slightly different in every country due to market and regulatory nuances. Therefore the source content is different in every country also. We are not going to push every (country, language) permutation through legal review. Therefore we have a few &quot;Accept-Language&quot; values we respect for each IP geolocation. If it&#x27;s not on the list, you get the country&#x27;s default.
gs176 天前
Even Accept-Language isn&#x27;t enough, although this probably falls under &quot;respect it&quot;.<p>A lot of websites seem to assume if you have a non-English language in it, they should use that language, even if English has the highest score, because obviously it&#x27;s your &quot;real&quot; language and English was just a default. E.g. `en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7` is read as &quot;we should serve the Chinese version&quot;.
notepad0x906 天前
Google is the biggest offender. If you have had legitimate use cases where you browsed sites or routed your traffic via a Cloud VM at different locations (or if you&#x27;re one of those rare people like me that use a damn VPN!) you probably already know this. I have to memorize &#x27;accept&#x27; (to accept their ToS prompt each time) and figure out how to change the language.
sikiladho6 天前
I’m glad someone said this. As someone from Pakistan whose first language is Sindhi and who detests the imposition of Urdu as a ‘lingua franca,’ I find it very frustrating when Google forces Urdu on Gmail, YouTube, and Search.<p>It also flips the entire user interface to a right-to-left layout to match Urdu’s writing direction, which feels completely unfamiliar and disorienting to me.
评论 #44028820 未加载
remon6 天前
Author is not wrong, but boy do I get annoyed with tech articles with this sort of &quot;listen up you dumb f*cks...&quot; tone.
LoganDark6 天前
IP doesn&#x27;t even tell you where a request comes from, IP just (usually) tells you what network sent it to you.
Steve163846 天前
My own law: &quot;Few things are as annoying as software trying to be helpful.&quot;
GuB-426 天前
I suspect that many people who deal with languages only speak English and never left the US. They have been told that other languages exist and that foreign countries exist, and they have to do something about it, and they did... something.<p>I remember a company I worked with used to have its internet connection go through German servers, even though it was in France. I remember the presentation page for one of Google&#x27;s phone was in German with no way to have it in anything else. Using a &quot;.fr&quot; domain, &quot;accept-language&quot;, logged into a French Google account, I also tried English too, no luck. I only managed to get some UI elements in something other than German, it felt like a troll. I wonder how the Swiss (a small country with 4 official languages) are doing.<p>In addition to the idea that the IP address is a pretty bad indicator of the language you speak, some websites have trouble with the idea that people can understand more than one language.<p>Hey, YouTube, I know I have set my account to French, but I understand English and you know it, so please don&#x27;t auto-translate video titles for me and do a terrible job at it. And I don&#x27;t want to set my account to English, because I guess it would translate French titles into English, which I want even less.
yusina6 天前
If language guessing is not ok, then why would currency and shipping guessing be ok? If you are VPN&#x27;d to Hong Kong and don&#x27;t understand Chinese, how does it help to expect HKD payments?
cubefox6 天前
Ideally a browser should ask for languages and country when being installed, in order to correctly fill the Accept-Language field. But that doesn&#x27;t happen because it would introduce friction.
评论 #44030962 未加载
评论 #44031273 未加载
rcarmo6 天前
As a bilingual Portuguese&#x2F;English speaker who essentially spends most of his waking hours working in English but switching back when I leave my home office, I have been very much annoyed by this since the dial-up days.<p>Infuriatingly, there was a train of thought at one time that used website analytics as a justification for either setting the default language of a site or trusting an external third-party like IP addresses databases (often just relying on the free, unmaintained stuff that broke after 3 months as the Internet expanded).<p>Then came the browser geolocation prompts, etc. -- and most people, lacking a basic understanding of how HTTP works, preferred chunks of JavaScript they could &quot;see&quot; to HTTP header information they didn&#x27;t understand, to the point where that got codified as &quot;best practice&quot;.<p>It also doesn&#x27;t help that most CMS frameworks completely fail to make use of that information and pass it down the stack, or that people have turned to doing SPAs (which _can_ just use navigator.language, but just do a search in any framework&#x27;s source code and see how often that is used).
thrill6 天前
Just as bad - don&#x27;t guess my location based on my IP address.
knorker6 天前
Some sites ignore en-US because so many devices ship that as a default. The Internet becomes a bit better if you set your language to en-AU.<p>But yes, many ignore the selected language or units completely.
joelthelion6 天前
More generally, if you&#x27;ve never dealt with foreign languages (for real, not just in school), don&#x27;t assume anything about multilingual support. You&#x27;ll get it wrong.
markh19676 天前
I first used Uber while on holiday in Poland and consequently every email I got from them was in Polish until I worked out how to cancel that account.
trollbridge6 天前
The reverse is also a problem. If I set my accept-language as en-AU, many sites assume I’m geolocated in Australia regardless of where I actually am.
globular-toast6 天前
How does this relate to the film <i>The Dreamers</i>? I did watch that film when I was a teen, but I didn&#x27;t pay attention to the story.
lxgr6 天前
Yes, please.<p>And while we&#x27;re at it: Google, you know literally everything about my life. You know which languages I speak, which countries I live or have lived in.<p>So why is it <i>impossible</i> to find results relevant to country A, in country A&#x27;s language, while browsing from country B, but with both languages A and B in my &quot;Accept-Language&quot;, and me having lived in both A and B for years?<p>Why does the &quot;languages I speak&quot; setting on Google&#x27;s search settings, which seems to be the only way to <i>maybe</i> make Google get the message, auto-reset at random all the time? How is <i>using a VPN to get around this limitation</i> a thing in 2025?
captainpiggies6 天前
On a related note: whatever idiot started using keyboard language instead of system language for emoji autocompletion on certain MacOS and iOS Apps, please go die in hell somewhere... I have had this issue randomly pop up with the Telegram client I am using, and it infuriates me beyond belief. Every single setting on my machine indicates that the language I am using is English, why is the search text of emojis tied to the one setting I cannot reasonably change because it is tied to a physical property of my device and not the 4 settings I can and did change.
HorkHunter6 天前
Yes 100% this, Geo-location != language. I wonder why this isn&#x27;t common sense to be honest
RedNifre6 天前
Could we also agree that bilingual (or more) people exist? I hate playing whack-a-mole with YouTube captions: Apparently me turning them off on English videos means I only speak English, so the next time I watch a German video, I&#x27;ll have to turn off captions again, which apparently means I forgot English and only understand German.<p>I mean, doesn&#x27;t Google have employees from multiple countries? Shouldn&#x27;t diversity fix this in the sense that some bilingual person there notices this?
TechDebtDevin6 天前
Kinda great to annoy me as a web-scraper using a mobile IP in the Philippines
TheRealPomax6 天前
Linguistic nit: that&#x27;s not what cargo cult means. Cargo cult refers to doing things that don&#x27;t in themselves do anything, just because XYZ did them, in the mistaken belief that &quot;showing signs of XYZ-ness&quot; will lead to the same results that XYZ sees&#x2F;produces.<p>Copying big-name-here&#x27;s practice of localizing based on IP is not that. Copying &quot;the way they comment the start of every file&quot; would be. Or &quot;using the same pep talk to the full company&quot; would be. Actually using an approach that has both code that <i>actually does</i> something, <i>and</i> has an immediate and measurable effect on the user, isn&#x27;t.
vladkens6 天前
Totally agree. Who can send this article to Google?
miki1232116 天前
Clearly there is some reason to do this.<p>I mean, Google does it, and they employ some of the most brilliant people on the planet. Showing people their website in the wrong language is clearly losing them money, so minimizing that is a very direct way to increase profits. There must be <i>some</i> reason they rely on IP more than on Accept-Language. They don&#x27;t leave money lying around, and there&#x27;s no way Google engineers aren&#x27;t aware of that header.<p>I don&#x27;t know why they do it, but somehow Accept-Language must be less reliable than IP. No other explanation makes sense in this context.
评论 #44033567 未加载
fifnir6 天前
Oh god please, this is so important!
dandare6 天前
Spotify is the worst.<p>EDIT: not any longer?
lmm6 天前
&gt; You don’t override screen resolution or color scheme with your own guess<p>They absolutely do lol.<p>Like it or not, people like you are outnumbered by people who set their Accept-Language header wrong and don&#x27;t know how to fix it. Those people probably buy more too (or at least buy more that shows up in tracking, since you sound like the kind of person who disables cookies etc. too).
评论 #44028461 未加载
评论 #44028445 未加载