diff options
Diffstat (limited to 'src/lib/Locale/english.ts')
| -rw-r--r-- | src/lib/Locale/english.ts | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/Locale/english.ts b/src/lib/Locale/english.ts index 50d0f908..2ae9178b 100644 --- a/src/lib/Locale/english.ts +++ b/src/lib/Locale/english.ts @@ -1,3 +1,5 @@ +import settings from '$stores/settings'; +import { get } from 'svelte/store'; import type { Locale } from './layout'; const English: Locale = { @@ -239,7 +241,18 @@ const English: Locale = { comma: ', ', commaNoSpace: ',', ampersand: '& ', - ended: 'Ended' + ended: 'Ended', + 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 } }; |