Add Localization for Urdu - datepicker-ur.js

This commit is contained in:
NEXTBRIDGE\abdullah 2018-04-24 21:29:39 +05:00
parent 74f8a0ac95
commit 8794b58b1c

47
ui/i18n/datepicker-ur.js Normal file
View File

@ -0,0 +1,47 @@
/* Abdullah initialisation for the jQuery UI date picker plugin. */
/* For Pakistani Users Only */
/* Written by Abdullah <abdullahmzm@gmail.com> */
/* Twitter Handle @Software_abi */
(function (factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
define(["../widgets/datepicker"], factory);
} else {
// Browser globals
factory(jQuery.datepicker);
}
}(function (datepicker) {
datepicker.regional.ur = {
closeText: "??? ????",
prevText: "&#x3C;?????",
nextText: "????&#x3E;",
currentText: "??",
monthNames: ["?????", "?????", "????", "?????", "???", "???",
"??????", "????", "?????", "??????", "?????", "?????"],
monthNamesShort: ["1", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "11", "12"],
dayNames: [
"?????",
"??????",
"????",
"???",
"??????",
"????",
"????"
],
dayNamesShort: ["?????", "??????", "????", "???", "??????", "????", "????"],
dayNamesMin: ["?????", "??????", "????", "???", "??????", "????", "????"],
weekHeader: "????",
dateFormat: "dd/mm/yy",
firstDay: 0,
isRTL: true,
showMonthAfterYear: false,
yearSuffix: ""};
datepicker.setDefaults(datepicker.regional.ur);
return datepicker.regional.ur;
}));