Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
898
Can't set regional and locale on igDatePicker
posted

Hi, I try to set german regional settings to igDatePicker (14.2) but I alway get en (Picture) 

 Here is my code.

<!-- =========================================

CSS

========================================== -->

<!--<link href="content/css/bootstrap.min.css" rel="stylesheet" />-->

<link href="content/css/bootstrap.css" rel="stylesheet" />

<link href="igniteui/css/themes/darkly/infragistics.theme.css" rel="stylesheet" />

<link href="igniteui/css/structure/infragistics.css" rel="stylesheet" />

<link href="content/css/visualit.css" rel="stylesheet" />

 

 

<!-- jQuery, jQuery Mobile and jQuery UI -->

<script src="scripts/modernizr.min.js"></script>

<script src="scripts/jquery-1.10.2.min.js"></script>

<script src="scripts/jquery-ui.min.js"></script>

<script src="igniteui/js/infragistics.core.js"></script>

<script src="igniteui/js/infragistics.lob.js"></script>

<script src="scripts/date.js"></script>

 

<!-- Dashboard core -->

<script src="content/scripts/config.js"></script>

<script src="content/scripts/app.js"></script>

 

All file paths are checked

$(document).ready(function () {

setCurrentPositions(true);

//#region get user language ***************************************

var userLang = window.navigator.userLanguage || window.navigator.language;

if (!userLang) {

userLang = navigator.userLanguage || navigator.language;

}

setLanguage(userLang);

//#endregion

$(function () {

var localesetting;

var regionalsetting = userLang;

switch (userLang.toLowerCase()) {

case "de-de":

localesetting = "de"

break;

//case "en-EN":

// break;

default:

localesetting = "en";

break;

}

$("#datepicker").igDatePicker({

regional: regionalsetting,

locale: localesetting,

});

});

});

Parents
No Data
Reply Children