Skip to content

feat: use localName in dropdown #7337

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

Merged
merged 1 commit into from
Dec 20, 2024
Merged

feat: use localName in dropdown #7337

merged 1 commit into from
Dec 20, 2024

Conversation

bmuenzenmeyer
Copy link
Collaborator

@bmuenzenmeyer bmuenzenmeyer commented Dec 18, 2024

Description

I was looking at https://www.electronjs.org/ and realized that our localization dropdown is all in English.

This isn't quite useful to native speakers

Before After
image image

Validation

https://nodejs-org-git-use-localname-openjs.vercel.app/

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

@Copilot Copilot AI review requested due to automatic review settings December 18, 2024 15:34
@bmuenzenmeyer bmuenzenmeyer requested a review from a team as a code owner December 18, 2024 15:34
Copy link

vercel bot commented Dec 18, 2024

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

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Dec 18, 2024 3:34pm

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

apps/site/components/Common/LanguageDropDown/index.tsx:50

  • Ensure that the change to display localName instead of name in the dropdown is covered by unit tests to verify that the correct names are displayed.
{localName}

Copy link
Contributor

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 89%
88.6% (583/658) 70.28% (175/249) 92.43% (110/119)

Unit Test Report

Tests Skipped Failures Errors Time
137 0 💤 0 ❌ 0 🔥 4.939s ⏱️

@AugustinMauroy
Copy link
Member

Why there are a regression on code cov ?

Copy link
Member

@canerakdas canerakdas left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

Copy link
Member

@mikeesto mikeesto left a comment

Choose a reason for hiding this comment

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

Nice catch!

@bmuenzenmeyer bmuenzenmeyer added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit d3584a1 Dec 20, 2024
16 checks passed
@bmuenzenmeyer bmuenzenmeyer deleted the use-localName branch December 20, 2024 16:04
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.

5 participants