Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 75 additions & 68 deletions dist/ng-bs3-datepicker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ng-bs3-datepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<div class='form-group'>
<label>A date with french canadian language</label>
<ng-bs3-datepicker id="date1" data-ng-model='date1' language="fr-ca" date-format="YYYY-MMMM-DD"/>
<ng-bs3-datepicker id="date1" data-ng-model='date1' language="fr-ca" date-format="YYYY-MM-DD"/>
</div>

<div class='form-group'>
Expand Down
29 changes: 15 additions & 14 deletions example/js/fr-ca.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
// moment.js locale configuration
// locale : canadian french (fr-ca)
// author : Jonathan Abourbih : https://github.com/jonbca
//! moment.js locale configuration
//! locale : canadian french (fr-ca)
//! author : Jonathan Abourbih : https://github.com/jonbca

(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node
} else {
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
}
}(function (moment) {
return moment.defineLocale('fr-ca', {
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';


var fr_ca = moment.defineLocale('fr-ca', {
months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
Expand Down Expand Up @@ -53,4 +51,7 @@
return number + (number === 1 ? 'er' : '');
}
});
}));

return fr_ca;

}));
Loading