5 ms·
> This website makes the wrong assumption someone's language is tied to the location. This is a bit of a premature "remote debugging" done, though. From what
by berkes 5y ago
> This website makes the wrong assumption someone's language is tied to the location.
This is a bit of a premature "remote debugging" done, though.
From what I see, they use Solidus and Rails as backend. This does not rule out your conclusion. But it is not a typical thing: in Rails (and Spree, from which Solidus is forked) it is, for example, far easier to read out the `Accept-Language` header than to do geo-ip language detection. It is easier to the right thing than the bad. Again: not saying this makes it guaranteed the cause.
More likely causes: location-based caching (you got a cached version which was generated using French), or same thing with a CDN.
More likely, because with Rails (and Solidus, and Spree) it is easy to make too-simple-caches, easier to ignore a parameter when building a cache, than to do right thing.
- dncornholio 5y agoWhat if I'm in France but speak English? It won't let us switch language / region separately. This is what I meant
- berkes 5y agoI'm not dismissing the issue you encounter: it is stupid and ugly. I'm merely pointing out that your analysis of why it happens, is lacking. It reminds me of customers who submit a feature-request or issue in the form of a concrete solution, rather than a good description of the problem they encounter. "I want a dropdown with flags to switch to another language" vs "I cannot switch languages". The latter presumes nothing, leaves the implementation to product-manager, -owner, UX designers or developers. The former is not only bad (flags for languages are stupid) it has a big chance of being dismissed entirely. Big chance the dev sees it and thinks "hmm, out of date, we already have that dropdown", but that due to a bug, setup, caching, incompatibility, browser-plugin or whatnot, it doesn't show up for the client.
- dncornholio 5y agoI might have been a bit snarky? I skipped all the compliments and went straight to the point, but that's just me. All the information is there to reproduce the first issue, showing the wrong language in the wrong country. My second statement wasn't a technical analysis but a principle one. One should not assume someone speaks the language of the country he or she is in. Plus, sometimes a country speaks more than 1 language.