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

Improve sort & filter of language options in search #5709

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

pfrazee
Copy link
Collaborator

@pfrazee pfrazee commented Oct 11, 2024

  • Removes duplicates in the language options
  • Sorts by: user's configured content languages, then application's "common" languages, then alphabetical

CleanShot 2024-10-10 at 20 57 57@2x

@arcalinea arcalinea temporarily deployed to sort-language-options-in-search - social-app PR #5709 October 11, 2024 03:58 — with Render Destroyed
Copy link

Old size New size Diff
7.89 MB 7.89 MB 281 B (0.00%)

Comment on lines +371 to +372
const aIsCommon = !!APP_LANGUAGES.find(al => al.code2 === a.value)
const bIsCommon = !!APP_LANGUAGES.find(al => al.code2 === b.value)
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@pfrazee pfrazee merged commit 5ebb630 into main Oct 11, 2024
6 checks passed
@pfrazee pfrazee deleted the sort-language-options-in-search branch October 11, 2024 05:15
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.

3 participants