digitalpatrioten / jquery-browser-language Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dansingerman/jquery-browser-language
Gets browser's language setting in a useful way
This project forked from dansingerman/jquery-browser-language
Gets browser's language setting in a useful way
This is a jQuery plugin to obtain the browser language setting Note, the browser language can not (generally) be obtained via navigator.language (which is silly but there you go) The browser language is available in "Accept-language" HTTP header, but this is not directly accessible via javascript. The plugin utilises a service at http://ajaxhttpheaders.appspot.com which echoes back the HTTP request headers in JSONP. I made that as well, and intend to leave it running there in perpetuity (or as long as Google continue to host App Engine for free) The Accept-Language header as defined by http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.10 uses an ISO 639-1 language code. The plugin converts this to an English Language description of the Language (e.g. 'Norwegian'), but also returns the complete value of the header if you need to do further processing. Example usage: <script> $.browserLanguage(function( language , acceptHeader ){ alert("You have your browser language set to " + language + " and the complete value of the 'Accept-Language' header is " + acceptHeader); }); </script>
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.