()
| 9 | } |
| 10 | |
| 11 | export function getLocale() { |
| 12 | if (typeof navigator === 'undefined') { |
| 13 | return 'en-US'; |
| 14 | } |
| 15 | |
| 16 | return navigator.language ?? 'en-US'; |
| 17 | } |
| 18 | |
| 19 | export function formatDate(date: Date) { |
| 20 | const day = date.getDate(); |
no outgoing calls
no test coverage detected