mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 08:29:10 -05:00
14 lines
325 B
TypeScript
14 lines
325 B
TypeScript
/**
|
|
* 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',
|
|
},
|
|
)
|