I’m letting users choose their preferred language setting for number, currency and date formats. I’ve got this implemented in a filter to set the Current(UI)Culture. Now I want to use that culture information on the client to setup jQuery’s datepicker.
What would be the most efficient way of getting the configured culture setting to the client on every request?
You could a helper method that will pull the current user culture from wherever you’ve stored it (presumably the user session, cookie, …).
And use this helper in your view: