Skip to content

feat(i18n): add missing translations for zh-CN#2084

Open
ShroXd wants to merge 1 commit intonpmx-dev:mainfrom
ShroXd:add-zhcn-translations
Open

feat(i18n): add missing translations for zh-CN#2084
ShroXd wants to merge 1 commit intonpmx-dev:mainfrom
ShroXd:add-zhcn-translations

Conversation

@ShroXd
Copy link
Contributor

@ShroXd ShroXd commented Mar 15, 2026

🔗 Linked issue

n/a

🧭 Context

Add missing translations for zh-CN.

📚 Description

Also optimized the translation for compare page, since the original translation "比较包" suffers from syntactic ambiguity.

@vercel
Copy link

vercel bot commented Mar 15, 2026

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

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Mar 15, 2026 9:34am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Mar 15, 2026 9:34am
npmx-lunaria Ignored Ignored Mar 15, 2026 9:34am

Request Review

@github-actions
Copy link

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
i18n/locales/zh-CN.json Localization changed, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 15, 2026

📝 Walkthrough

Walkthrough

This pull request updates the Simplified Chinese locale file (zh-CN.json) with translation additions and amendments across multiple feature areas. Changes include new keyboard shortcut translations (open_main, open_diff), expanded view-on repository platform options (GitLab, Bitbucket, Codeberg, and others), revised navigation terminology for package comparison, new compare interface elements (table view, charts view, version selector), enhanced binary file indicators for downloads, and extended trends section entries. The modifications affect approximately 37 lines added and 15 lines removed.

Possibly related PRs

Suggested reviewers

  • danielroe
  • 9romise
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description clearly relates to the changeset, explaining the addition of missing zh-CN translations and optimization of compare page terminology.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
i18n/locales/zh-CN.json (1)

290-292: Note: Duplicate translation for distinct keys.

Both main (Line 290) and homepage (Line 292) are translated as "主页". This may be intentional if the English source uses similar wording, but if the English strings differ semantically, consider using distinct translations to preserve the nuance (e.g., "主要" for main vs "主页" for homepage).


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6f50e3d7-0dc9-45ad-add7-e56b23a10a27

📥 Commits

Reviewing files that changed from the base of the PR and between a170292 and 4369cf4.

📒 Files selected for processing (1)
  • i18n/locales/zh-CN.json

@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

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.

1 participant