You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i18n(zh): token translated as 令牌 reads oddly in LLM context #40976
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
Activity
tp20c5 commentedon Aug 11, 2026
词元确实比令牌更恰当,毕竟token作为令牌翻译时是用在几乎完全不同的场合。但念了好几年的token突然因为一纸正确就要换成词元,一旦注意到了还真有点甩不开的违和感,就跟走在大街上突然有人喝住要你抬腿时先迈左脚一样。
接受不了的就换繁中🌐️吧,那儿还用token——无关什么正确,因为翻到日文界面是用片假名トークン 时老子也绷不住了😄️,从这一点看能有合适的中文翻译其实也未尝不是好事。