Skip to content

Conversation

@bmuenzenmeyer
Copy link
Contributor

Description

While browsing the site, I got bothered by the abbreviation Prev showing to users. We have the screen real estate to use the full word here. I was initially concerned about internationalization too, which made me look at en.json key composition. I then noticed we were defining prev and next in two places... and only using one, or worse, intermingling them. This PR unifies the keys under the more structured common.pagination ...now the text and the label draw from the same object.

I chose not to refactor PaginationProps or non-user-facing references at this time which still use things like prev and prevAria. I could be convinced to do so, but wanted to start here. This might also thrash Crowdin translations.

Validation

image

Related Issues

Check List

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

Copilot AI review requested due to automatic review settings November 27, 2025 13:05
@bmuenzenmeyer bmuenzenmeyer requested a review from a team as a code owner November 27, 2025 13:05
@vercel
Copy link

vercel bot commented Nov 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nodejs-org Ready Ready Preview Nov 27, 2025 3:25pm

@github-actions
Copy link
Contributor

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

Copy link
Contributor

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.

Pull request overview

This PR refactors the pagination-related translation keys to improve user experience and eliminate duplication. The main change is updating "Prev" to "Previous" in the CrossLink component for better readability, while consolidating pagination translation keys under a unified structure.

Key Changes:

  • Changed common.crossLink.previous from "Prev" to "Previous" for improved UX
  • Removed duplicate components.pagination keys that were redundant
  • Updated Pagination.tsx to reference the correct components.common.pagination keys

Reviewed changes

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

File Description
packages/i18n/src/locales/en.json Updated CrossLink to display "Previous" instead of "Prev"; removed duplicate pagination keys from components.pagination
apps/site/components/Common/Pagination.tsx Updated to use components.common.pagination keys instead of the removed components.pagination keys

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.42%. Comparing base (9b189b1) to head (1577fbb).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../ui-components/src/Common/BasePagination/index.tsx 50.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8378   +/-   ##
=======================================
  Coverage   76.42%   76.42%           
=======================================
  Files         118      118           
  Lines        9928     9928           
  Branches      334      334           
=======================================
  Hits         7587     7587           
  Misses       2339     2339           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 27, 2025

📦 Build Size Comparison

Summary

Metric Value
Old Total Size 3.51 MB
New Total Size 3.51 MB
Delta 0 B (0.00%)

Changes

➕ Added Assets (6)
Name Size
.next/static/chunks/b4bca898dacf31ef.js 24.71 KB
.next/static/chunks/a5406d7a8afb6608.js 204.48 KB
.next/static/chunks/7025d8ae59394f13.js 24.88 KB
.next/static/chunks/687f0a629aaa3907.js 8.50 KB
.next/static/chunks/734fdcc6f2f75299.js 10.31 KB
.next/static/chunks/6f0e08805c0716c6.js 6.29 KB
➖ Removed Assets (6)
Name Size
.next/static/chunks/cf3ae8386872b03f.js 24.88 KB
.next/static/chunks/ea3a705d0d725c90.js 204.48 KB
.next/static/chunks/004277efec02375f.js 8.50 KB
.next/static/chunks/3a28d2ad04e48e39.js 10.31 KB
.next/static/chunks/d58a1720bba76079.js 6.29 KB
.next/static/chunks/3d486db5c4e81f21.js 24.71 KB

necessitates renaming the key in pagination due to dynamic reference in CrossLink
@bmuenzenmeyer bmuenzenmeyer added this pull request to the merge queue Nov 29, 2025
Merged via the queue into main with commit 57bb36f Nov 29, 2025
12 checks passed
@bmuenzenmeyer bmuenzenmeyer deleted the prev-to-previous-and-cleanup branch November 29, 2025 17:39
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.

4 participants