wix-design-systems-locale-utils
Advanced tools
Comparing version 1.13.0 to 1.14.0
@@ -5,5 +5,10 @@ "use strict"; | ||
exports.getShortTime = void 0; | ||
const shortTimeOptions = { | ||
hour: 'numeric', | ||
minute: 'numeric' | ||
}; | ||
const modifiedShortTimes = { | ||
tr: date => new Intl.DateTimeFormat('tr', { | ||
timeStyle: 'short', | ||
hour: '2-digit', | ||
minute: '2-digit', | ||
hour12: true | ||
@@ -25,5 +30,3 @@ }).format(date) | ||
return new Intl.DateTimeFormat(locale, { | ||
timeStyle: 'short' | ||
}).format(date); | ||
return new Intl.DateTimeFormat(locale, shortTimeOptions).format(date); | ||
}; | ||
@@ -30,0 +33,0 @@ |
@@ -0,4 +1,12 @@ | ||
var shortTimeOptions = { | ||
hour: 'numeric', | ||
minute: 'numeric', | ||
}; | ||
var modifiedShortTimes = { | ||
tr: function (date) { | ||
return new Intl.DateTimeFormat('tr', { timeStyle: 'short', hour12: true }).format(date); | ||
return new Intl.DateTimeFormat('tr', { | ||
hour: '2-digit', | ||
minute: '2-digit', | ||
hour12: true, | ||
}).format(date); | ||
}, | ||
@@ -16,4 +24,4 @@ }; | ||
} | ||
return new Intl.DateTimeFormat(locale, { timeStyle: 'short' }).format(date); | ||
return new Intl.DateTimeFormat(locale, shortTimeOptions).format(date); | ||
}; | ||
//# sourceMappingURL=getShortTime.js.map |
{ | ||
"name": "wix-design-systems-locale-utils", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
95132
554