How to use Date Picker when having a custom language

Create a User Control with the following code:

Example:

NewUserControlScriptImg01

Code:


<script>

var WWP_DateRangePicker_Locales = window["WWP_DateRangePicker_Locales"] || {};

WWP_DateRangePicker_Locales["Language1"] = {

       "format": "MM/DD/YY",

       "separator": " - ",

       "applyLabel": "Apply",

       "todayLabel": "Today",

       "cancelLabel": "Clear",

       "fromLabel": "From",

       "toLabel": "To",

       "customRangeLabel": "Custom",

       "weekLabel": "W",

       "daysOfWeek": [

        "Su",

        "Mo",

        "Tu",

        "We",

        "Th",

        "Fr",

        "Sa"

       ],

       "monthNames": [

        "January",

        "February",

        "March",

        "April",

        "May",

        "June",

        "July",

        "August",

        "September",

        "October",

        "November",

        "December"

       ]

}

</script>

 

Add this new User Control to the Master Page (by default, WorkWithPlusMasterPage)

The base code according to your language can be copied by taking it from the file:

<GX_Path>\UserControls\DVelop\Shared\daterangepicker\locales.js