Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/cli/src/api/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,11 @@ export async function writeCompiled(
return filename
}

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

export const orderByMessage: OrderByFn = (a, b) => {
const aMsg = a.entry.message || ""
const bMsg = b.entry.message || ""
const aCtxt = a.entry.context || ""
Expand Down