Use Intl.DateTimeFormat instead of moment for date formatting
This commit is contained in:
parent
bd40a7fb98
commit
356fb301e1
8 changed files with 106 additions and 91 deletions
7
ts/Intl.d.ts
vendored
Normal file
7
ts/Intl.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// https://github.com/microsoft/TypeScript/issues/29129
|
||||
declare namespace Intl {
|
||||
function getCanonicalLocales(locales: string | Array<string>): Array<string>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue