diff options
| author | Fuwn <[email protected]> | 2024-02-07 08:21:33 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-02-07 08:21:33 -0800 |
| commit | 389c888dfb41522ead62508cf174650b11a21cfa (patch) | |
| tree | b29dd7f922256b130e00bc65dc1e1743e13e6afd /src/lib/Locale/english.ts | |
| parent | feat(locale): localise hololive date formatter (diff) | |
| download | due.moe-389c888dfb41522ead62508cf174650b11a21cfa.tar.xz due.moe-389c888dfb41522ead62508cf174650b11a21cfa.zip | |
feat(locale): localise airing time
Diffstat (limited to 'src/lib/Locale/english.ts')
| -rw-r--r-- | src/lib/Locale/english.ts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/Locale/english.ts b/src/lib/Locale/english.ts index 2ae9178b..bb70a6dd 100644 --- a/src/lib/Locale/english.ts +++ b/src/lib/Locale/english.ts @@ -253,7 +253,18 @@ const English: Locale = { // second: 'numeric' // timeZoneName: 'short' }).format - } + }, + dateFormatter: new Intl.DateTimeFormat('en-US', { + year: 'numeric', + month: 'long', + day: 'numeric', + weekday: 'long', + hour: 'numeric', + hour12: !get(settings).display24HourTime, + minute: 'numeric' + // second: 'numeric' + // timeZoneName: 'short' + }).format }; export default English; |