I've got a jQuery i18n plugin init:
jQuery.i18n.properties({
    name : 'appsConstants',
    path : '/gadgets/',
    mode : 'both',
    language : 'en'
});
How to take out the language variable into browser line like a parameter?
I've got a jQuery i18n plugin init:
jQuery.i18n.properties({
    name : 'appsConstants',
    path : '/gadgets/',
    mode : 'both',
    language : 'en'
});
How to take out the language variable into browser line like a parameter?
 
    
     
    
    You have several options here:
window.location 
    
    This article from Scott Hanselman talks about globalization (cultures/locale)
I've used that for making my jQuery aware of the users culture (for use with a datepicker amongst others) I also downloaded the i18n jQuery plugin and registered that.
I went with the "Slightly Less Cheesy - Meta Tag" solution for "detecting" locale and registered a
<meta name="accept-language" content="en-US">
in the head section, then I could utilize that tag in my jQuery to figure out what locale/language to use.
The article is slightly outdated so some of the javascript needs an update here and there as an example Globalization.js has changed from $.global. to Globalize. Bits and pieces like that you need to update to get it all working.