I'm looking for a way to localize a Windows Sidebar Gadget. It is written primarily in Javascript. What I specifically want is a way to get the user's "language code" (eg. en-us) because the language code will be used to get a localized XML file from a server.
If anyone has any ideas for how to get this language code or, even better, some code that accomplishes this task that would be great. Thanks in advance.
Edit: It looks like whoever asked for code deleted his comment, so I deleted the sample code as it was just clutter that didn't contribute.