Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: language list containing duplicate en lang #6583

Merged
merged 2 commits into from May 13, 2023

Conversation

dwelle
Copy link
Member

@dwelle dwelle commented May 12, 2023

No description provided.

@dwelle dwelle requested a review from ad1992 May 12, 2023 21:10
@vercel
Copy link

vercel bot commented May 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
excalidraw ✅ Ready (Inspect) Visit Preview May 13, 2023 8:46pm
excalidraw-package-example ✅ Ready (Inspect) Visit Preview May 13, 2023 8:46pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) May 13, 2023 8:46pm

Comment on lines +65 to +70
.filter(
(lang) =>
(percentages as Record<string, number>)[lang.code] >=
COMPLETION_THRESHOLD,
)
.sort((left, right) => (left.label > right.label ? 1 : -1)),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter first to spend less time sorting

@dwelle dwelle merged commit 5bf27a4 into master May 13, 2023
7 checks passed
@dwelle dwelle deleted the dwelle/fix-language-list branch May 13, 2023 20:50
alswl pushed a commit to alswl/excalidraw that referenced this pull request Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant