Skip to content

Commit d27f510

Browse files
gcotelliacrobat
authored andcommitted
Rename en-CA locale file to match the rest of the files (uxsolutions#2217)
* Rename en-CA locale file to match the rest of the files naming convention. * Revert "Rename en-CA locale file to match the rest of the files naming convention." This reverts commit 712f828. * Make the changes in a backwards compatible way
1 parent 4c12834 commit d27f510

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

js/locales/bootstrap-datepicker-en-CA.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Canadian English translation for bootstrap-datepicker
33
* Mike Nacey <mnacey@gmail.com>
4+
* DEPRECATED: This filename doesn't follow the convention, use bootstrap-datepicker.en-CA.js instead
45
*/
56
;(function($){
67
$.fn.datepicker.dates['en-CA'] = {
@@ -15,4 +16,7 @@
1516
weekStart: 0,
1617
format: "yyyy-mm-dd"
1718
};
19+
20+
$.fn.datepicker.deprecated('This filename doesn\'t follow the convention, use bootstrap-datepicker.en-CA.js instead.');
21+
1822
}(jQuery));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Canadian English translation for bootstrap-datepicker
3+
* Mike Nacey <mnacey@gmail.com>
4+
*/
5+
;(function($){
6+
$.fn.datepicker.dates['en-CA'] = {
7+
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
8+
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
9+
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
10+
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
11+
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
12+
today: "Today",
13+
monthsTitle: "Months",
14+
clear: "Clear",
15+
weekStart: 0,
16+
format: "yyyy-mm-dd"
17+
};
18+
}(jQuery));

0 commit comments

Comments
 (0)