mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
55d72a8f68
Auto-updated using release-website.sh
14 lines
583 B
JavaScript
14 lines
583 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getCollatorLocale = exports.getCollator = void 0;
|
|
const locale_1 = require("../../locale");
|
|
function getCollator(locale = getCollatorLocale()) {
|
|
return new Intl.Collator(locale, { numeric: true, sensitivity: 'accent' });
|
|
}
|
|
exports.getCollator = getCollator;
|
|
function getCollatorLocale() {
|
|
const collatorLocale = (0, locale_1.languageCodeOnly)((0, locale_1.currentLocale)());
|
|
return collatorLocale;
|
|
}
|
|
exports.getCollatorLocale = getCollatorLocale;
|
|
//# sourceMappingURL=getCollator.js.map
|