I am using YUI’s calendar component in my website. I have inserted the code into an ASP page as Javascript as this example demonstrates. This example shows how to configure the calendar component for one locale (German in this case). What I would like to know is how can I configure the calendar for each user based on the language of their browser?
Share
An even easier solution than shown in my other answer would be to use the ScriptManager control’s EnableScriptLocalization property:
This will automatically try to include a localized version of the script, e.g.
yui-calendar-localization-de-DE.js.