There is no way to do this directly using Jquery, however, if you use the .NET framework, you can set Culture and UICulture to public properties and read them from JQuery.
in your CS file:
public string GetCurrentCulture
{
get
{
return System.Threading.Thread.CurrentThread.CurrentCulture.DisplayName;
}
}
And from HTML:
var CurrentCulture = '';
$(document).ready(function () {
CurrentCulture = '<%= this.GetCurrentCulture %>';
});
source
share