diff options
| author | thanhpd <[email protected]> | 2018-10-02 00:14:55 +0700 |
|---|---|---|
| committer | thanhpd <[email protected]> | 2018-10-02 00:14:55 +0700 |
| commit | 36bda7596ceed8ae0f5d2b86c9f70a636785dfab (patch) | |
| tree | 0e9e273bd93a52f8611c1e6ab5cef9593e6991cd /lib | |
| parent | ea041e61e482267822eba17b84cd425d6e91cca1 (diff) | |
| download | faker-36bda7596ceed8ae0f5d2b86c9f70a636785dfab.tar.xz faker-36bda7596ceed8ae0f5d2b86c9f70a636785dfab.zip | |
Added date for vi locale
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/locales/vi/date/index.js | 4 | ||||
| -rw-r--r-- | lib/locales/vi/date/month.js | 63 | ||||
| -rw-r--r-- | lib/locales/vi/date/weekday.js | 43 | ||||
| -rw-r--r-- | lib/locales/vi/index.js | 1 |
4 files changed, 111 insertions, 0 deletions
diff --git a/lib/locales/vi/date/index.js b/lib/locales/vi/date/index.js new file mode 100644 index 00000000..8c45d3f6 --- /dev/null +++ b/lib/locales/vi/date/index.js @@ -0,0 +1,4 @@ +var date = {}; +module["exports"] = date; +date.month = require("./month"); +date.weekday = require("./weekday"); diff --git a/lib/locales/vi/date/month.js b/lib/locales/vi/date/month.js new file mode 100644 index 00000000..9f3cb1c6 --- /dev/null +++ b/lib/locales/vi/date/month.js @@ -0,0 +1,63 @@ +// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799 +module["exports"] = { + wide: [ + "Tháng Giêng", + "Tháng Hai", + "Tháng Ba", + "Tháng Tư", + "Tháng Năm", + "Tháng Sáu", + "Tháng Bảy", + "Tháng Tám", + "Tháng Chín", + "Tháng Mười", + "Tháng Mười Một", + "Tháng Mười Hai" + ], + // 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: [ + "Tháng Giêng", + "Tháng Hai", + "Tháng Ba", + "Tháng Tư", + "Tháng Năm", + "Tháng Sáu", + "Tháng Bảy", + "Tháng Tám", + "Tháng Chín", + "Tháng Mười", + "Tháng Mười Một", + "Tháng Mười Hai" + ], + abbr: [ + "Tháng 1", + "Tháng 2", + "Tháng 3", + "Tháng 4", + "Tháng 5", + "Tháng 6", + "Tháng 7", + "Tháng 8", + "Tháng 9", + "Tháng 10", + "Tháng 11", + "Tháng 12" + ], + // 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: [ + "Tháng 1", + "Tháng 2", + "Tháng 3", + "Tháng 4", + "Tháng 5", + "Tháng 6", + "Tháng 7", + "Tháng 8", + "Tháng 9", + "Tháng 10", + "Tháng 11", + "Tháng 12" + ] +}; diff --git a/lib/locales/vi/date/weekday.js b/lib/locales/vi/date/weekday.js new file mode 100644 index 00000000..18eeca76 --- /dev/null +++ b/lib/locales/vi/date/weekday.js @@ -0,0 +1,43 @@ +// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847 +module["exports"] = { + wide: [ + "Chủ nhật", + "Thứ hai", + "Thứ ba", + "Thứ tư", + "Thứ năm", + "Thứ sáu", + "Thứ bảy" + ], + // 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: [ + "Chủ nhật", + "Thứ hai", + "Thứ ba", + "Thứ tư", + "Thứ năm", + "Thứ sáu", + "Thứ bảy" + ], + abbr: [ + "CN", + "T2", + "T3", + "T4", + "T5", + "T6", + "T7", + ], + // 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: [ + "C.Nhật", + "Thứ 2", + "Thứ 3", + "Thứ 4", + "Thứ 5", + "Thứ 6", + "Thứ 7", + ] +}; diff --git a/lib/locales/vi/index.js b/lib/locales/vi/index.js index 0fb639ec..427211d7 100644 --- a/lib/locales/vi/index.js +++ b/lib/locales/vi/index.js @@ -8,3 +8,4 @@ vi.cell_phone = require("./cell_phone"); vi.name = require("./name"); vi.company = require("./company"); vi.lorem = require("./lorem"); +vi.date = require("./date"); |
