forked from zuriby/Faker.js
-
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.
Merge pull request #251 from mradionov/master
[api] Adding generators: faker.date.month(), faker.date.weekday()
- Loading branch information
Showing
11 changed files
with
333 additions
and
1 deletion.
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
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,4 @@ | ||
var date = {}; | ||
module["exports"] = date; | ||
date.month = require("./month"); | ||
date.weekday = require("./weekday"); |
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,63 @@ | ||
// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799 | ||
module["exports"] = { | ||
wide: [ | ||
"January", | ||
"February", | ||
"March", | ||
"April", | ||
"May", | ||
"June", | ||
"July", | ||
"August", | ||
"September", | ||
"October", | ||
"November", | ||
"December" | ||
], | ||
// Property "wide_context" is optional, if not set then "wide" will be used instead | ||
// It is used to specify a word in context, which may differ from a stand-alone word | ||
wide_context: [ | ||
"January", | ||
"February", | ||
"March", | ||
"April", | ||
"May", | ||
"June", | ||
"July", | ||
"August", | ||
"September", | ||
"October", | ||
"November", | ||
"December" | ||
], | ||
abbr: [ | ||
"Jan", | ||
"Feb", | ||
"Mar", | ||
"Apr", | ||
"May", | ||
"Jun", | ||
"Jul", | ||
"Aug", | ||
"Sep", | ||
"Oct", | ||
"Nov", | ||
"Dec" | ||
], | ||
// Property "abbr_context" is optional, if not set then "abbr" will be used instead | ||
// It is used to specify a word in context, which may differ from a stand-alone word | ||
abbr_context: [ | ||
"Jan", | ||
"Feb", | ||
"Mar", | ||
"Apr", | ||
"May", | ||
"Jun", | ||
"Jul", | ||
"Aug", | ||
"Sep", | ||
"Oct", | ||
"Nov", | ||
"Dec" | ||
] | ||
}; |
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,43 @@ | ||
// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847 | ||
module["exports"] = { | ||
wide: [ | ||
"Sunday", | ||
"Monday", | ||
"Tuesday", | ||
"Wednesday", | ||
"Thursday", | ||
"Friday", | ||
"Saturday" | ||
], | ||
// Property "wide_context" is optional, if not set then "wide" will be used instead | ||
// It is used to specify a word in context, which may differ from a stand-alone word | ||
wide_context: [ | ||
"Sunday", | ||
"Monday", | ||
"Tuesday", | ||
"Wednesday", | ||
"Thursday", | ||
"Friday", | ||
"Saturday" | ||
], | ||
abbr: [ | ||
"Sun", | ||
"Mon", | ||
"Tue", | ||
"Wed", | ||
"Thu", | ||
"Fri", | ||
"Sat" | ||
], | ||
// Property "abbr_context" is optional, if not set then "abbr" will be used instead | ||
// It is used to specify a word in context, which may differ from a stand-alone word | ||
abbr_context: [ | ||
"Sun", | ||
"Mon", | ||
"Tue", | ||
"Wed", | ||
"Thu", | ||
"Fri", | ||
"Sat" | ||
] | ||
}; |
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,4 @@ | ||
var date = {}; | ||
module["exports"] = date; | ||
date.month = require("./month"); | ||
date.weekday = require("./weekday"); |
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,59 @@ | ||
// source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/ru.xml#L1734 | ||
module["exports"] = { | ||
wide: [ | ||
"январь", | ||
"февраль", | ||
"март", | ||
"апрель", | ||
"май", | ||
"июнь", | ||
"июль", | ||
"август", | ||
"сентябрь", | ||
"октябрь", | ||
"ноябрь", | ||
"декабрь" | ||
], | ||
wide_context: [ | ||
"января", | ||
"февраля", | ||
"марта", | ||
"апреля", | ||
"мая", | ||
"июня", | ||
"июля", | ||
"августа", | ||
"сентября", | ||
"октября", | ||
"ноября", | ||
"декабря" | ||
], | ||
abbr: [ | ||
"янв.", | ||
"февр.", | ||
"март", | ||
"апр.", | ||
"май", | ||
"июнь", | ||
"июль", | ||
"авг.", | ||
"сент.", | ||
"окт.", | ||
"нояб.", | ||
"дек." | ||
], | ||
abbr_context: [ | ||
"янв.", | ||
"февр.", | ||
"марта", | ||
"апр.", | ||
"мая", | ||
"июня", | ||
"июля", | ||
"авг.", | ||
"сент.", | ||
"окт.", | ||
"нояб.", | ||
"дек." | ||
] | ||
}; |
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,39 @@ | ||
// source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/ru.xml#L1825 | ||
module["exports"] = { | ||
wide: [ | ||
"Воскресенье", | ||
"Понедельник", | ||
"Вторник", | ||
"Среда", | ||
"Четверг", | ||
"Пятница", | ||
"Суббота" | ||
], | ||
wide_context: [ | ||
"воскресенье", | ||
"понедельник", | ||
"вторник", | ||
"среда", | ||
"четверг", | ||
"пятница", | ||
"суббота" | ||
], | ||
abbr: [ | ||
"Вс", | ||
"Пн", | ||
"Вт", | ||
"Ср", | ||
"Чт", | ||
"Пт", | ||
"Сб" | ||
], | ||
abbr_context: [ | ||
"вс", | ||
"пн", | ||
"вт", | ||
"ср", | ||
"чт", | ||
"пт", | ||
"сб" | ||
] | ||
}; |
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