Skip to content

Commit f26a9d9

Browse files
fix: extract performance caused by catalog sort (#2460)
1 parent 44f43d6 commit f26a9d9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/cli/src/api/catalog.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,11 @@ export async function writeCompiled(
373373
return filename
374374
}
375375

376-
export const orderByMessage: OrderByFn = (a, b) => {
377-
// hardcoded en-US locale to have consistent sorting
378-
// @see https://github.com/lingui/js-lingui/pull/1808
379-
const collator = new Intl.Collator("en-US")
376+
// hardcoded en-US locale to have consistent sorting
377+
// @see https://github.com/lingui/js-lingui/pull/1808
378+
const collator = new Intl.Collator("en-US")
380379

380+
export const orderByMessage: OrderByFn = (a, b) => {
381381
const aMsg = a.entry.message || ""
382382
const bMsg = b.entry.message || ""
383383
const aCtxt = a.entry.context || ""

0 commit comments

Comments
 (0)