forked from moment/moment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Portuguese, Italian, and French language support Updating string arrays to use "Part_Part".split("_") instead of ["Part","Part"]
- Loading branch information
Showing
7 changed files
with
103 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "underscore.date", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Underscore.date is a javascript date library that helps create, manipulate, and format dates without extending the `Date` prototype.", | ||
"homepage": "https://github.com/timrwood/underscore.date", | ||
"author": "Tim Wood <[email protected]> (http://timwoodcreates.com/)", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
(function () { | ||
var lang = { | ||
months : "Janvier_Février_Mars_Avril_Mai_Juin_Juillet_Aout_Septembre_Octobre_Novembre_Décembre".split("_"), | ||
monthsShort : "Jan_Fev_Mar_Avr_Mai_Jui_Jui_Aou_Sep_Oct_Nov_Dec".split("_"), | ||
weekdays : "Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"), | ||
weekdaysShort : "Dim_Lun_Mar_Mer_Jeu_Ven_Sam".split("_"), | ||
relativeTime : { | ||
future : "in %s", | ||
past : "il y a %s", | ||
s : "secondes", | ||
m : "une minute", | ||
mm : "%d minutes", | ||
h : "une heure", | ||
hh : "%d heures", | ||
d : "un jour", | ||
dd : "%d jours", | ||
M : "un mois", | ||
MM : "%d mois", | ||
y : "une année", | ||
yy : "%d années" | ||
}, | ||
ordinal : function(number) { | ||
var b = num % 10; | ||
return (~~ (number % 100 / 10) === 1) ? 'er' : 'ème'; | ||
} | ||
}, | ||
abbr = 'fr'; | ||
|
||
// Node | ||
if (typeof module !== 'undefined') { | ||
module.exports = {lang : lang, abbr : abbr}; | ||
} | ||
// Browser | ||
if (typeof window !== 'undefined' && this._date && this._date.lang) { | ||
this._date.lang(abbr, lang); | ||
} | ||
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.