Signed-off-by: Christopher Ng <chrng8@gmail.com>pull/51336/head
parent
eb60f6a7ba
commit
7c976a9605
@ -0,0 +1,14 @@ |
||||
/** |
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
||||
* SPDX-License-Identifier: AGPL-3.0-or-later |
||||
*/ |
||||
|
||||
import { getCanonicalLocale, getLanguage } from '@nextcloud/l10n' |
||||
|
||||
export const naturalCollator = Intl.Collator( |
||||
[getLanguage(), getCanonicalLocale()], |
||||
{ |
||||
numeric: true, |
||||
usage: 'sort', |
||||
}, |
||||
) |
Loading…
Reference in new issue