I am 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" (for example, en-us), because the language code will be used to get a localized XML file from the server.
If anyone has ideas on how to get this language code or, better yet, some code that will accomplish this task, that would be great. Thanks in advance.
Edit: It seems that the one who asked for the code deleted his comment, so I deleted the sample code as it was just a mess that did not contribute.
source
share