Skip to content

fix: standardize Chinese token terminology - #992

Draft
Ill-donut wants to merge 1 commit into
mainfrom
fix/zh-token-context-terminology
Draft

fix: standardize Chinese token terminology#992
Ill-donut wants to merge 1 commit into
mainfrom
fix/zh-token-context-terminology

Conversation

@Ill-donut

@Ill-donut Ill-donut commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Standardize Chinese model/NLP terminology with position-aware casing: use Token only when the term itself begins a sentence, title, label, or definition fragment; otherwise use lowercase token in Chinese text.
  • Standardize authentication credentials as 令牌, while preserving identifiers, code literals, external UI labels, and deliberate UI casing.
  • Align quoted Dify UI fields with the coordinated UI branch.
  • Correct adjacent terminology such as cryptocurrency 代币 and tokenizer 分词器.

The two model-token corrections in zh/quick-start.mdx remain in #945 and are intentionally excluded here to avoid duplicate changes.

UI alignment

Coordinated UI branch: langgenius/dify:fix/zh-ui-token-terminology

  • Token-first strings remain capitalized: Token 用量, Token 输出速度, Token/秒, Token 数
  • Strings with preceding Chinese text use lowercase: 耗费 token, 使用 token, 花费 token
  • Running prose uses lowercase token
  • appLog.table.header.tokens remains TOKENS as an intentional all-caps table header, consistent with the source locale and neighboring headers
  • workflow.nodes.llm.resolution.high/low: High/Low, /, and / in en/zh/ja

Checks

  • git diff --check
  • OpenAPI JSON parse
  • API spec lint: 0 issues
  • API parity check: 0 issues
  • Internal links and anchors: 0 issues
  • Format lint: no new violations compared with origin/main
  • Full casing and terminology reverse scan across the docs and UI branch

@Ill-donut
Ill-donut requested a review from RiskeyL as a code owner August 26, 2026 07:31
@mintlify

mintlify Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
dify-ce-cloud-docs 🟢 Ready View Preview Aug 26, 2026, 7:33 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. documentation Improvements or additions to documentation labels Aug 26, 2026
@Ill-donut
Ill-donut marked this pull request as draft August 26, 2026 07:49
@Ill-donut
Ill-donut force-pushed the fix/zh-token-context-terminology branch from 7a378ce to 608b963 Compare August 26, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant