3 ms·
I don’t think there’s a browser setting that lets you use the locale the web site’s language in, is there?
by sedatk 1y ago
I don’t think there’s a browser setting that lets you use the locale the web site’s language in, is there?
- 1718627440 1y agoYou set all the language you want with priorities and the webserver knows it's own language and serves you the intersection with the highest priority. Or do I misunderstand your question?
- sedatk 1y agoI mean the locale, not the language. Many web sites are in a single language and target a specific culture. I want that to be respected by the browser for input type=date and other similar elements based on web site’s language, not the other way around. That’s my preference.
- 1718627440 1y agoWhat your browser calls a language, is in fact a locale. You specify en_US, not English. That would be equivalent to no setting a preferred locale or adding all the available locales. <html lang=...
- sedatk 1y agoOkay, I already have preferred languages selected: English and Turkish. If I visit a `<html lang="tr">` page I should see date inputs rendered in Turkish culture right? That's not the case unfortunately. See it for yourself: lang=en-US -> https://kod.ssg.dev/localetest/ https://kod.ssg.dev/localetest/ lang=tr-TR -> https://kod.ssg.dev/localetest/index-tr.html https://kod.ssg.dev/localetest/index-tr.html