You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Doc: Auto-update documentation
Auto-updated using release-website.sh
This commit is contained in:
14
packages/lib/models/utils/getCollator.js
Normal file
14
packages/lib/models/utils/getCollator.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
"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
|
Reference in New Issue
Block a user