We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee5a4ec commit fcdbc58Copy full SHA for fcdbc58
src/locale/en-nz.js
@@ -9,7 +9,11 @@ const locale = {
9
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
10
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
11
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
12
- ordinal: n => n,
+ ordinal: (n) => {
13
+ const s = ['th', 'st', 'nd', 'rd']
14
+ const v = n % 100
15
+ return `[${n}${s[(v - 20) % 10] || s[v] || s[0]}]`
16
+ },
17
formats: {
18
LT: 'h:mm A',
19
LTS: 'h:mm:ss A',
0 commit comments