Description
In the Simplified Chinese (zh) locale, the context usage panel translates "token" as 「令牌」 (literally "command tablet"). That term comes from the API credential context (访问令牌 / refresh token), and in an LLM context it reads oddly — e.g. 「推理令牌」 (reasoning token) and 「缓存令牌」 (cache token).
For reference:
- The Traditional Chinese locale (
zht.ts) keeps the original word: 总 token, 输入 token, 推理 token
- Earlier versions of the zh locale also kept "token"; it was changed to 「令牌」 in a recent translation pass
.opencode/glossary/zh-cn.md has no entry for "token"
Suggested fix: use 「词元」 (the common scholarly translation for LLM tokens), or keep the English "token" like the zht locale does.
Plugins
None
OpenCode version
Desktop, latest dev build (2026-08)
Steps to reproduce
- Open OpenCode Desktop, set language to 简体中文
- Open any session and look at the context usage panel
- See 令牌总数 / 输入令牌 / 输出令牌 / 推理令牌 / 缓存令牌 / 令牌数
Screenshot and/or share link
N/A
Operating System
Windows 11
Terminal
N/A (Desktop app)
Description
In the Simplified Chinese (zh) locale, the context usage panel translates "token" as 「令牌」 (literally "command tablet"). That term comes from the API credential context (访问令牌 / refresh token), and in an LLM context it reads oddly — e.g. 「推理令牌」 (reasoning token) and 「缓存令牌」 (cache token).
For reference:
zht.ts) keeps the original word: 总 token, 输入 token, 推理 token.opencode/glossary/zh-cn.mdhas no entry for "token"Suggested fix: use 「词元」 (the common scholarly translation for LLM tokens), or keep the English "token" like the zht locale does.
Plugins
None
OpenCode version
Desktop, latest dev build (2026-08)
Steps to reproduce
Screenshot and/or share link
N/A
Operating System
Windows 11
Terminal
N/A (Desktop app)