Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 35e4a4a

Browse files
committed
taking in consideration hour12 default value from each cldr data format pattern
1 parent dadaf29 commit 35e4a4a

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

dist/Intl.complete.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intl",
3-
"version": "1.0.0-rc-1",
3+
"version": "1.0.0-rc-2",
44
"description": "Polyfill the ECMA-402 Intl API (except collation)",
55
"main": "index.js",
66
"jsnext:main": "src/main.js",

src/cldr.js

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export function createDateTimeFormat(format) {
109109
});
110110

111111
if (formatObj.pattern.indexOf('{ampm}') > -1) {
112+
formatObj.hour12 = true;
112113
formatObj.pattern12 = formatObj.pattern;
113114
formatObj.pattern = formatObj.pattern.replace('{ampm}', '').trim();
114115
}

0 commit comments

Comments
 (0)