davidben / client-language-selection Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Web sites can be translated into dozens or hundreds of languages, and may also include regional variants and script variants. In your proposal, it looks like the server has to send a full list of supported languages to the client. How does this scale?
The explainer should discuss what the browser does for an origin for which all resources are available in languages A
and B
, but some are also translated to language C
, if the user's preferences are something like C
, B
.
One option would be to use the UI indicator, remember which languages the user has chosen to send to the site, and then send that subset of the user's full preference ordering since they've already been revealed for fingerprinting purposes.
Modern Unicode locale identifiers are not limited to languages; they also carry additional subtags and extensions. In tc39/ecma402#416 I proposed a way to add unicode extensions to the Accept-Language header. How would you envision supporting Unicode extensions with your new model of language negotiation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.