How to load this datejs culture file based on the browsers current culture?
<p>I want to change the date format based on the current browser culture.</p>

<p>In my project I used the <a href="http://www.datejs.com/" rel="nofollow">date.js</a> library which has nearly 150 culture specific files of hte form,
date-en-us.js
date-de-de.js
etc.</p>

<p>So, I am trying to get the browser's culture from java script like this:</p>

<p>navigator.userLanguage
or
navigator.language</p>

<p>The above return the "lang-country" code like "en-us" for some cultures correctly, but does not for other cultures like French, where it only returns "fr".</p>

<p>So, how do I ensure that I always get a "lang-contry" from the browser culture so that I can load the appropriate date-lang-country.js file from my server?</p>
