+11
-3
lines changedFilter options
+11
-3
lines changed Original file line number Diff line number Diff line change
@@ -442,10 +442,18 @@ export const BCalendar = Vue.extend({
442
442
})
443
443
},
444
444
formatDay() {
445
-
return createDateFormatter(this.calendarLocale, {
446
-
day: STR_NUMERIC,
447
-
calendar: STR_GREGORY
445
+
// Calendar grid day number formatter
446
+
// We don't use DateTimeFormatter here as it can place extra
447
+
// character(s) after the number (i.e the `zh` locale)
448
+
const nf = new Intl.NumberFormat([this.computedLocale], {
449
+
style: 'decimal',
450
+
minimumIntegerDigits: 1,
451
+
minimumFractionDigits: 0,
452
+
maximumFractionDigits: 0,
453
+
notation: 'standard'
448
454
})
455
+
// Return a formatter function instance
456
+
return date => nf.format(date.getDate())
449
457
},
450
458
// Disabled states for the nav buttons
451
459
prevDecadeDisabled() {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4