Skip to content

fix(i18n): update Simplified Chinese and Traditional Chinese translations#2147

Merged
ghostdevv merged 3 commits intonpmx-dev:mainfrom
wChenonly:main
Mar 20, 2026
Merged

fix(i18n): update Simplified Chinese and Traditional Chinese translations#2147
ghostdevv merged 3 commits intonpmx-dev:mainfrom
wChenonly:main

Conversation

@wChenonly
Copy link
Contributor

🔗 Linked issue

🧭 Context

📚 Description

Update Simplified Chinese and Traditional Chinese translate

@vercel
Copy link

vercel bot commented Mar 19, 2026

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

Project Deployment Actions Updated (UTC)
npmx.dev (canary) Ready Ready Preview, Comment Mar 20, 2026 1:16am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Mar 20, 2026 1:16am
npmx-lunaria Ignored Ignored Mar 20, 2026 1:16am

Request Review

@github-actions
Copy link

github-actions bot commented Mar 19, 2026

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. 🔄️
i18n/locales/zh-TW.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.

@codecov
Copy link

codecov bot commented Mar 19, 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!

@wChenonly wChenonly changed the title feat(i18n): Update Simplified Chinese and Traditional Chinese translate chore(i18n): update Simplified Chinese and Traditional Chinese translate Mar 19, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 19, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5b994b40-c185-4f81-b4e3-845fd800fe50

📥 Commits

Reviewing files that changed from the base of the PR and between 939fbb0 and 84e335b.

📒 Files selected for processing (1)
  • i18n/locales/zh-TW.json
✅ Files skipped from review due to trivial changes (1)
  • i18n/locales/zh-TW.json

📝 Walkthrough

Walkthrough

This PR updates Simplified and Traditional Chinese localisation files (i18n/locales/zh-CN.json and i18n/locales/zh-TW.json), adding and modifying numerous translation keys across shortcuts, settings (instant search and graph pulse loop), footer/blog, package UI (links, card selection, versions, maintainers, trends, downloads), code viewer binary handling, filters, compare UI, about/pds pages, HTTP error messages (zh-TW), and a new top-level action_bar. Net changes: zh-CN lines changed +51/−10; zh-TW lines changed +129/−18.

Possibly related PRs

Suggested reviewers

  • danielroe
  • shuuji3
  • 9romise
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description directly addresses the changeset by stating it updates Simplified Chinese and Traditional Chinese translation files, which matches the modifications to i18n locale JSON files.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 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.

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2af9e093-b98b-4faf-a337-a7d59ff59dfb

📥 Commits

Reviewing files that changed from the base of the PR and between 5d8fcf5 and 2c0defe.

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

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.

♻️ Duplicate comments (3)
i18n/locales/zh-TW.json (2)

203-203: ⚠️ Potential issue | 🟡 Minor

Finish the new view_on provider labels.

Line 203, Line 205 and Line 206 still end mid-phrase, so the provider menu will render broken standalone labels.

💬 Suggested fix
-      "git_repo": "在 Git repository",
+      "git_repo": "在 Git 儲存庫上檢視",
       "forgejo": "在 Forgejo 上檢視",
-      "gitea": "在 Gitea",
-      "gitee": "在 Gitee",
+      "gitea": "在 Gitea 上檢視",
+      "gitee": "在 Gitee 上檢視",

Also applies to: 205-206


1350-1350: ⚠️ Potential issue | 🟡 Minor

Keep the full selection message in every plural branch.

Line 1350 drops the 已選擇 prefix in the third branch, so counts above 1 render as just {count} 個套件.

💬 Suggested fix
-    "selection": "已選擇 0 個套件 | 已選擇 1 個套件 | {count} 個套件",
+    "selection": "已選擇 0 個套件 | 已選擇 1 個套件 | 已選擇 {count} 個套件",
i18n/locales/zh-CN.json (1)

286-286: ⚠️ Potential issue | 🟡 Minor

Remove the pasted key name from the refs translation.

Line 286 still contains grouping_usage_most_used inside the user-facing copy, so the file count will render corrupted text.

💬 Suggested fix
-        "refs": "{count} 个引grouping_usage_most_used用 | {count} 个引用",
+        "refs": "{count} 个引用 | {count} 个引用",

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 80f4b9aa-6b2c-4fab-94ce-588e8c8d33d2

📥 Commits

Reviewing files that changed from the base of the PR and between 2c0defe and 825c3d7.

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

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.

Actionable comments posted: 1

♻️ Duplicate comments (1)
i18n/locales/zh-TW.json (1)

1350-1350: ⚠️ Potential issue | 🟡 Minor

Keep the full selection status in the last plural branch.

Line 1350 drops 已選擇 in the final branch, so counts above 1 render as a bare package count instead of a complete selection message.

💬 Proposed fix
-    "selection": "已選擇 0 個套件 | 已選擇 1 個套件 | {count} 個套件",
+    "selection": "已選擇 0 個套件 | 已選擇 1 個套件 | 已選擇 {count} 個套件",

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 37c7b3a2-8871-4b5f-a600-3c67790095ff

📥 Commits

Reviewing files that changed from the base of the PR and between 825c3d7 and 385989b.

📒 Files selected for processing (2)
  • i18n/locales/zh-CN.json
  • i18n/locales/zh-TW.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • i18n/locales/zh-CN.json

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.

Actionable comments posted: 1

♻️ Duplicate comments (2)
i18n/locales/zh-TW.json (2)

1350-1350: ⚠️ Potential issue | 🟡 Minor

Keep the full selection message in every branch.

The third branch of the pluralisation resolves to just {count} 個套件, losing the "已選擇" (selected) context that appears in the first two branches. This will render inconsistently in the action bar for counts greater than 1.

💬 Suggested fix
-    "selection": "已選擇 0 個套件 | 已選擇 1 個套件 | {count} 個套件",
+    "selection": "已選擇 0 個套件 | 已選擇 1 個套件 | 已選擇 {count} 個套件",

505-506: ⚠️ Potential issue | 🟡 Minor

Normalise the facet-bar alt text punctuation.

These entries use ASCII full stops (.) and half-width parentheses, which is inconsistent with the rest of the Traditional Chinese accessibility copy that uses Chinese punctuation (。、()).

💬 Proposed fix
-        "facet_bar_general_description": "水平長條圖: {package} 的 {facet} 對比({description}). {facet_analysis} {watermark}.",
-        "facet_bar_analysis": "{package_name} 值為 {value}."
+        "facet_bar_general_description": "水平長條圖:{packages} 的 {facet} 對比({description})。{facet_analysis} {watermark}。",
+        "facet_bar_analysis": "{package_name} 值為 {value}。"

Note: Also verify the placeholder should be {packages} (plural) to match the zh-CN version at line 505.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a065f41d-2e95-4be9-b6c6-12dc5b6760cb

📥 Commits

Reviewing files that changed from the base of the PR and between 385989b and 939fbb0.

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

@ghostdevv ghostdevv changed the title chore(i18n): update Simplified Chinese and Traditional Chinese translate fix(i18n): update Simplified Chinese and Traditional Chinese translations Mar 20, 2026
@ghostdevv ghostdevv added this pull request to the merge queue Mar 20, 2026
Merged via the queue into npmx-dev:main with commit a0dd2a9 Mar 20, 2026
20 checks passed
@github-actions github-actions bot mentioned this pull request Mar 20, 2026
@github-actions
Copy link

Thanks for your first contribution, @wChenonly! 💥

We'd love to welcome you to the npmx community. Come and say hi on Discord! And once you've joined, visit npmx.wamellow.com to claim the contributor role.

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.

2 participants