daterangepicker rus language

3 replies·opened Sep 19, 2022
S
SemiColonWebSTAFFSep 20, 2022

Hello,

Consider using the following settings in the Date/Time Picker JS Initialization Codes:

"locale": {
	"format": "MM/DD/YYYY",
	"separator": " - ",
	"applyLabel": "Apply",
	"cancelLabel": "Cancel",
	"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"
	],
	"firstDay": 1
},

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

K
kostys2Sep 21, 2022

Sorry, I'm not sure where to use this code.

in the Date/Time Picker JS Initialization Codes

S
SemiColonWebSTAFFSep 22, 2022

Hello,

This is how your codes will look like:

jQuery('.cleaning-date').daterangepicker({
	"buttonClasses": "button button-rounded button-mini nott ls0 fw-semibold",
	"applyClass": "button-color m-0 ms-1",
	"cancelClass": "bg-danger m-0 text-light",
	singleDatePicker: true,
	startDate: moment().startOf('hour'),
	minDate: moment().startOf('date'),
	timePicker: false,
	timePickerSeconds: false,
	locale: {
		"format": 'DD/MM/YYYY h:mm a',
		"separator": " - ",
		"applyLabel": "Apply",
		"cancelLabel": "Cancel",
		"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"
		],
		"firstDay": 1,
	},
	timePickerIncrement: 10
});

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard