@kcuf/intl-formatter
Version:
Basic intl formatters.
16 lines (15 loc) • 336 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getFormatDateFallbackPattern;
function getFormatDateFallbackPattern(format) {
switch (format) {
case 'date':
return 'YYYY-MM-DD';
case 'time':
return 'HH:mm:ss';
default:
return 'YYYY-MM-DD HH:mm:ss';
}
}