Skip to content

fix(i18n): align zh-CN wording with the other locales - #50

Merged
wanghe-fit2cloud merged 1 commit into
1Panel-dev:mainfrom
zyyfit:fix/i18n-zh-cn-wording
Sep 23, 2026
Merged

wanghe-fit2cloud merged 1 commit into
1Panel-dev:mainfrom
zyyfit:fix/i18n-zh-cn-wording

Conversation

@zyyfit

@zyyfit zyyfit commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

What

Aligns three zh-CN strings with the terminology already used elsewhere in i18n.tsx and with the other locales.

Key Before After
homeWithoutKeys 密钥只会显示一次 完整密钥只会显示一次
noKeyDescription 创建一柄密钥后 创建一把密钥后
usageDescription 与调用次数 与请求次数

Why

  • homeWithoutKeys dropped "full" from the English source (the full key is shown only once). The zh-TW string already says 完整金鑰, and saveKeyDescription in the same file already uses 完整密钥.
  • noKeyDescription used the wrong measure word 一柄 for an API key. Every other occurrence in this file (activeKeyCount, keyCount, docsDescription, saveKeyTitle) uses 把.
  • usageDescription said 调用次数, while the requests label in the same file is translated as 请求数.

Scope

Three zh-CN strings only. No zh-TW or en changes, no code changes.

- Use 一把 instead of 一柄 for the API key quantifier, matching the
  other occurrences in this file (activeKeyCount, keyCount,
  docsDescription, saveKeyTitle) which all use 把.
- Restore 完整 in the one-time key notice, matching the English
  source (the full key is shown only once) and the zh-TW wording.
- Use 请求次数 in the usage description, matching the existing
  requests label (请求数) elsewhere in this file.
@wanghe-fit2cloud
wanghe-fit2cloud merged commit a471d07 into 1Panel-dev:main Sep 23, 2026
1 of 2 checks passed
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