We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5465380 commit 1b95ecdCopy full SHA for 1b95ecd
src/locale/en-au.js
@@ -9,7 +9,6 @@ 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,
13
formats: {
14
LT: 'h:mm A',
15
LTS: 'h:mm:ss A',
@@ -32,6 +31,11 @@ const locale = {
32
31
MM: '%d months',
33
y: 'a year',
34
yy: '%d years'
+ },
35
+ ordinal: (n) => {
36
+ const s = ['th', 'st', 'nd', 'rd']
37
+ const v = n % 100
38
+ return `[${n}${(s[(v - 20) % 10] || s[v] || s[0])}]`
39
}
40
41
0 commit comments