GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(i18n): use 词元 instead of 令牌 for token in zh locale by Speechlessmanbilibili · Pull Request #40977 · anomalyco/opencode

Conversation

@Speechlessmanbilibili

@Speechlessmanbilibili Speechlessmanbilibili commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #40976

Type of change

  • Bug fix

What does this PR do?

In the zh locale, the context usage panel translates "token" as 「令牌」, which is the API-credential term (访问令牌) and reads oddly in an LLM context — e.g. 「推理令牌」, 「缓存令牌」. This replaces the 7 occurrences in packages/app/src/i18n/zh.ts with 「词元」, the common scholarly translation for LLM tokens.

The zht locale and older zh versions keep the English "token" (总 token, 输入 token), and .opencode/glossary/zh-cn.md has no entry for token, so there is no established convention to contradict.

How did you verify your code works?

  • Only the 7 string values changed; no keys or logic touched
  • git diff confirms exactly those 7 lines
  • i18n keys still match en.ts (parity is key-based)

Screenshots / recordings

N/A — translation-only change

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

frg2089, AtmoOmen, lijinsen1016, 7gugu, hangyan, quan01994, indust, haoliplus, pplab, feng1w, and 21 more reacted with thumbs up emoji Eronana, Rin313, sandy2008, SlightDust, Yihao-G, wess09, YJ2CS, akay-abc, skming, Watanabe-Hana, and 46 more reacted with thumbs down emoji orangeawa reacted with confused emoji Wxh16144 reacted with eyes emoji
All reactions
  • 👍 31 reactions
  • 👎 56 reactions
  • 😕 1 reaction
  • 👀 1 reaction
@Speechlessmanbilibili
fix(i18n): translate token as 词元 instead of 令牌 in zh locale
07164d2
@Speechlessmanbilibili
Speechlessmanbilibili requested review from Brendonovich and Hona as code owners August 7, 2026 02:36
Speechlessmanbilibili added 4 commits August 7, 2026 12:19
@Speechlessmanbilibili
Merge branch 'dev' into fix/zh-token-translation
f185a2e
@Speechlessmanbilibili
Merge remote-tracking branch 'upstream/dev' into fix/zh-token-transla…
911e4a0
…tion
@Speechlessmanbilibili
Merge branch 'fix/zh-token-translation' of https://github.com/Speechl…
9660664
…essmanbilibili/opencode into fix/zh-token-translation
@Speechlessmanbilibili
Merge branch 'dev' into fix/zh-token-translation
9a9f09d
@Hona

Hona commented Aug 7, 2026

Copy link
Copy Markdown
Member

Thanks! I'll take a look

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Hona
Hona merged commit b05a0d1 into anomalyco:dev Aug 7, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

HQ123-BOOP pushed a commit to HQ123-BOOP/LibreCode that referenced this pull request Aug 9, 2026
@Speechlessmanbilibili @HQ123-BOOP
fix(i18n): use 词元 instead of 令牌 for token in zh locale (anomalyco#40977)
4391c10
@SlightDust

SlightDust commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

bad translation from china government

heimoshuiyu, Eronana, Asachoo, szdyg, akay-abc, Ostrichbeta, bingym, Watanabe-Hana, ahaooahaz, Mino9526, and 57 more reacted with thumbs up emoji Meursau1T, nnxiaod, haoliplus, StonerLing, ybybwdwd, pine2D, pplab, yazinnnn, cfmj, YaoJuan, and 49 more reacted with thumbs down emoji YaoJuan, wilsonmilson, and miaomiaosoft reacted with laugh emoji
All reactions
  • 👍 67 reactions
  • 👎 59 reactions
  • 😄 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Eronana

Eronana commented Aug 10, 2026

Copy link
Copy Markdown

This is a terrible, awful translation. It should never have been allowed into this codebase.

SlightDust, sandy2008, XC1996114514, lzl12snd, Yihao-G, szdyg, akay-abc, Ostrichbeta, Mino9526, Ion-nsx, and 46 more reacted with thumbs up emoji hermanzhu, Overdust1d, haoliplus, StonerLing, ybybwdwd, pplab, yazinnnn, YaoJuan, WShihan, Gahotx, and 35 more reacted with thumbs down emoji 1208nn reacted with heart emoji
All reactions
  • 👍 56 reactions
  • 👎 45 reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@unemployabot unemployabot Bot mentioned this pull request Aug 10, 2026
Termux v1.18.16 wallentx/opencode-termux#48
Merged
@Rin313

Rin313 commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Please reject these pointless and garbage pull requests and focus on product development.
👉🌶🐷又在污染文明世界了

dmwin72015, tuess, Watanabe-Hana, Ion-nsx, miraclemoonmen, m2acgi, xia0hj, RonanXiao, zhw2590582, EcRal5t, and 23 more reacted with thumbs up emoji lujimin, Lwep, Overdust1d, bnyu, nnxiaod, zjttfs, ybybwdwd, ne1av, yazinnnn, StonerLing, and 77 more reacted with thumbs down emoji
All reactions
  • 👍 33 reactions
  • 👎 87 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zce

zce commented Aug 10, 2026

Copy link
Copy Markdown

词元 may be a valid academic translation, but that alone doesn't make it the right localization for a developer-facing tool. The relevant question should be what Chinese developers actually use and understand naturally. Today, keeping Token would likely be less surprising and avoids turning product localization into terminology advocacy.

habaneraa, SlightDust, LittleNightmare, aa2013, qingyiwebt, NewbieXvwu, iliyian, IsaacGao, Geekertao, AnemoFlower, and 6 more reacted with thumbs up emoji
All reactions
  • 👍 16 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Speechlessmanbilibili

Speechlessmanbilibili commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

But 令牌 is not a correct translation; it is more likely to cause misunderstanding.

ybybwdwd, MrDustZero, zhuantouer, lujimin, xdstack, Watanabe-Hana, cfmj, hlwhl, StonerLing, pplab, and 49 more reacted with thumbs up emoji Rin313, SongZhiH, xlionjuan, Fission21, and lvshp reacted with thumbs down emoji
All reactions
  • 👍 59 reactions
  • 👎 5 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zce

zce commented Aug 10, 2026

Copy link
Copy Markdown

I strongly prefer keeping Token here. It is already the established term among Chinese, and is far more widely recognized than “词元”.

It’s like NBA vs. 美职篮: a translation can be technically valid without being what people actually use. Localization should reflect established community usage, not try to redefine it.

SlightDust, Eronana, YJ2CS, muyujx, zhuantouer, Watanabe-Hana, nnxiaod, m2acgi, johnsonkang, lightsummer233, and 28 more reacted with thumbs up emoji
All reactions
  • 👍 38 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silicon14

silicon14 commented Aug 10, 2026

Copy link
Copy Markdown

The ONLY correct translation is “词元”. This is the hard truth.
你们这帮政治露阴癖的傻逼有本事自己上井冈山,跑人家一个开源项目底下叫什么。

ybybwdwd, shincurry, AtmoOmen, lijinsen1016, muyujx, liunnn1994, Yahiko-r, 88Bit, Watanabe-Hana, frankilla-m, and 69 more reacted with thumbs up emoji Rin313, duzefu, Ion-nsx, lhx-6355, m2acgi, xia0hj, qingyiwebt, imexplorer1, leowux, wcbing, and 16 more reacted with thumbs down emoji PixelGeek325, yfjn, and wrpromail reacted with heart emoji
All reactions
  • 👍 79 reactions
  • 👎 26 reactions
  • ❤️ 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SlightDust

SlightDust commented Aug 10, 2026

Copy link
Copy Markdown

Who defines "CORRECT"? First there was the term "token" translated as "令牌", then the Chinese government came up with "词元". "令牌" was already an accepted translation, so why is "词元" supposedly the CORRECT one? Just because the Chinese government proposed it? If you ask me, that's over-politicizing things.

m2acgi, leowux, Estrella-Explore, chenruishao, f0ngyu, alexj11324, gitkeniwo, voidSpir1t, hackroid, and jliushi reacted with thumbs up emoji StonerLing, lxx-003, NewbieXvwu, billxc, dss886, Yv-Chinglin, kesco, sandboxdream, yfjn, liao666brant, and 10 more reacted with thumbs down emoji
All reactions
  • 👍 10 reactions
  • 👎 20 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silicon14

silicon14 commented Aug 10, 2026

Copy link
Copy Markdown

Who defines "CORRECT"? First there was the term "token" translated as "令牌", then the Chinese government came up with "词元". "令牌" was already an accepted translation, so why is "词元" supposedly the CORRECT one? Just because the Chinese government proposed it? If you ask me, that's over-politicizing things.

Do you know what government means? Yes, government defines which is CORRECT.
Obeying what government decide is not over-politicizing.
Disobeying it just because it's the government's decision is over-politicizing.

NewbieXvwu, neavo, Zenon-Chen, sandboxdream, ycdm, woct0rdho, PixelGeek325, lvshp, and tang12306 reacted with thumbs up emoji reusee, NickYan7, Rin313, bingym, tqtij03440, Ion-nsx, hangyan, Yihao-G, m2acgi, xlionjuan, and 14 more reacted with thumbs down emoji SlightDust, PVLPM, voidSpir1t, and hackroid reacted with laugh emoji
All reactions
  • 👍 9 reactions
  • 👎 24 reactions
  • 😄 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dmwin72015

dmwin72015 commented Aug 10, 2026

Copy link
Copy Markdown

Please don't pollute the civilized world.

Ion-nsx, m2acgi, bclswl0827, leowux, chenruishao, voidSpir1t, OrihaWeave, and jliushi reacted with thumbs up emoji hangyan, cfmj, haoliplus, StonerLing, yazinnnn, msdx321, goxofy, xlionjuan, shuke12306, wmsyw, and 29 more reacted with thumbs down emoji goxofy, zhangnjsd, and Hamakaze1s reacted with laugh emoji
All reactions
  • 👍 8 reactions
  • 👎 39 reactions
  • 😄 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hangyan

hangyan commented Aug 10, 2026

Copy link
Copy Markdown

looks good

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cfmj

cfmj commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Who defines "CORRECT"? First there was the term "token" translated as "令牌", then the Chinese government came up with "词元". "令牌" was already an accepted translation, so why is "词元" supposedly the CORRECT one? Just because the Chinese government proposed it? If you ask me, that's over-politicizing things.

In the Chinese context, “令牌” means an authentication token, which is obviously inconsistent with the meaning of “token” in the LLM context. “词元” may not be a particularly good Chinese translation, but in any case, it is better than “令牌”.

hangyan, yolo2h, msdx321, wilsonmilson, Slinet6056, NewbieXvwu, billxc, shiratori3, Zhonger-Yuansi, dss886, and 21 more reacted with thumbs up emoji
All reactions
  • 👍 31 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tqtij03440

tqtij03440 commented Aug 10, 2026

Copy link
Copy Markdown

Please stop introducing this outdated and obsolete pictographic writing system into this open-source project. This is a political project driven by the Chinese government.

m2acgi, bclswl0827, fayashi233, voidSpir1t, and jliushi reacted with thumbs up emoji hangyan, yebukong, aa2013, msdx321, Slinet6056, NewbieXvwu, wmsyw, shiratori3, Zenon-Chen, ycdm, and 15 more reacted with thumbs down emoji
All reactions
  • 👍 5 reactions
  • 👎 25 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hellodigua

hellodigua commented Aug 10, 2026

Copy link
Copy Markdown

不知道在吵什么,我觉得原来令牌这个翻译确实不合理,在我心理最合理的翻译,就 token不动 > 词元 > 令牌,词元起码比令牌更合理一些

不讨论官方立场,中文翻译追求事物的本意,从这点上词元我感觉确实问题不大,起码暂时找不到比这个更合理的翻译了。

举个反例,要是按照日语的翻译逻辑,给token翻译成片假名 “托肯” “脱坑”之类的,看楼上的怎么评价 🤣

yunpusama, Eronana, hangyan, zhywang, luhuan-bz, hermanzhu, nnxiaod, StonerLing, pplab, ybybwdwd, and 74 more reacted with thumbs up emoji
All reactions
  • 👍 84 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rakshith1928

rakshith1928 commented Aug 10, 2026

Copy link
Copy Markdown

Came from the X post

davyzhu reacted with laugh emoji AnemoFlower and Minecraftbe reacted with eyes emoji
All reactions
  • 😄 1 reaction
  • 👀 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Eronana

Eronana commented Aug 10, 2026

Copy link
Copy Markdown

But 令牌 is not a correct translation; it is more likely to cause misunderstanding.

I agree, but I prefer to directly use the word token.

To be frank, I don’t like the term 词元, because I’m pretty sure the term you actually use when communicating is token, not 词元. That’s why I gave it a thumbs down.

That said, 令牌 is clearly not the right translation either, and I think everyone here would agree on that. Your PR is definitely worthwhile, but what we ultimately settle on may still need to be discussed by the community.

m2acgi, wilsonmilson, NewbieXvwu, Elkeid-me, iliyian, Speechlessmanbilibili, first-storm, Geekertao, ws2356, zhangnjsd, and 5 more reacted with thumbs up emoji
All reactions
  • 👍 15 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yiding-he

yiding-he commented Aug 10, 2026

Copy link
Copy Markdown

Who defines "CORRECT"? First there was the term "token" translated as "令牌", then the Chinese government came up with "词元". "令牌" was already an accepted translation, so why is "词元" supposedly the CORRECT one? Just because the Chinese government proposed it? If you ask me, that's over-politicizing things.

  • token for authentication -> 令牌
  • token for LLM processing -> 词元

在界面上,二者的表达并不难区分,所以错误的翻译应该纠正。

hermanzhu, muyujx, pplab, ghidgdsr, goxofy, msdx321, NewbieXvwu, billxc, wmsyw, laggardkernel, and 21 more reacted with thumbs up emoji Ion-nsx, Elkeid-me, first-storm, and leeflouring reacted with thumbs down emoji
All reactions
  • 👍 31 reactions
  • 👎 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Ion-nsx

Ion-nsx commented Aug 10, 2026

Copy link
Copy Markdown

恶心人🤢

hackroid reacted with thumbs up emoji hangyan, muyujx, WShihan, msdx321, Slinet6056, NewbieXvwu, wmsyw, laggardkernel, ghidgdsr, JesseHug, and 13 more reacted with thumbs down emoji
All reactions
  • 👍 1 reaction
  • 👎 23 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pplab

pplab commented Aug 10, 2026

Copy link
Copy Markdown

Why not check what Wikipedia says?
https://zh.wikipedia.org/wiki/Token

cfmj, Zhonger-Yuansi, TCOTC, Minecraftbe, moreant, davyzhu, demo-zexuan, yangxiaoge, and i-shl reacted with thumbs up emoji
All reactions
  • 👍 9 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rtwangdev-lab

rtwangdev-lab commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

官方"词元"的翻译肯定好于“令牌”,一帮魑魅魍魉在此狂吠,真令人作呕!
下次你们被解雇(fire)了的时候就说自己火(fire)了吧...

OliverZou, hhelibeb, PixelGeek325, letheli710, faketrader, demo-zexuan, lvshp, Fido6, yangxiaoge, leeflouring, and 6 more reacted with thumbs up emoji miaomiaosoft, chunjiazeng, OrihaWeave, voidSpir1t, hackroid, and walker3354 reacted with thumbs down emoji WhiteGiverMa, dacongda, and chenxuuu reacted with laugh emoji
All reactions
  • 👍 16 reactions
  • 👎 6 reactions
  • 😄 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ShaoxiongXu

ShaoxiongXu commented Aug 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

词元容易让人误解1个token是一个词,
字元容易让人误解1个token是一个字,
上下文 上下文 模型处理的最小文本单位。
不如叫文元。

Hamakaze1s, RainNameless, hackroid, and a350844866 reacted with thumbs up emoji Hamakaze1s reacted with hooray emoji
All reactions
  • 👍 4 reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Aug 10, 2026
[2026-08-11 00:14:40] - V2EX 共 10 条热门话题 R2DM/v2ex_mofish#394
Open
@1208nn

1208nn commented Aug 10, 2026

Copy link
Copy Markdown

'词元量' may better than '词元数'. It sometimes a cost unit.

btw, this translation has not yet been officially ratified; it is only a recommended usage and remains provisional.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@OliverZou

OliverZou commented Aug 10, 2026

Copy link
Copy Markdown

这个怎么可能,你这是语文...> 词元容易让人误解1个token是一个词,

字元容易让人误解1个token是一个字,
上下文 上下文 模型处理的最小文本单位。
不如叫文元。

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexj11324

alexj11324 commented Aug 10, 2026

Copy link
Copy Markdown

Since "token" is already widely recognized and commonly used among Chinese developers, I don’t think there is much benefit in translating it as "词元." Keeping "token" untranslated would be clearer and more consistent with how the developer community actually uses the term.

As others have mentioned above, "词元" is a relatively formal translation that has been promoted largely through Chinese government-affiliated press and does not necessarily reflect the terminology preferred by the majority of Chinese developers.

More broadly, there are many English technical terms whose official Chinese translations have never become common in everyday usage. For example, "无线局域网" may be used as a formal translation in contexts related to Wi-Fi, while most people simply say "Wi-Fi." Similarly, "App" remains extremely common in Chinese despite the existence of translations such as "应用" or "应用程序."

For this reason, I think it would be better for the OpenCode maintenance team to keep "token" untranslated in the Chinese localization. This would better match actual developer usage and make the terminology feel more natural to Chinese users.

junbaor, xiaokaiyyy, Fission21, yeliex, and hackroid reacted with thumbs up emoji
All reactions
  • 👍 5 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mstscmsn

mstscmsn commented Aug 10, 2026

Copy link
Copy Markdown

傻逼

demo-zexuan, iamshen, chenxuuu, and 15963360 reacted with thumbs down emoji
All reactions
  • 👎 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jhqn2023

jhqn2023 commented Aug 11, 2026

Copy link
Copy Markdown

is:pr is:open 蠢人翻译插入 "词元"这种私货,

Fission21, Ion-nsx, OrihaWeave, voidSpir1t, and hackroid reacted with thumbs up emoji dozer47528, moreant, faketrader, plommon, lLoopSider, demo-zexuan, hangyan, lvshp, iamshen, hermanzhu, and 2 more reacted with thumbs down emoji
All reactions
  • 👍 5 reactions
  • 👎 12 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@davyzhu

davyzhu commented Aug 11, 2026

Copy link
Copy Markdown

Technical issues should not be politicized; support opencode in translating token as 词元.

技术问题不应该政治化,支持opencode把token翻译成词元。

PixelGeek325, demo-zexuan, and chenxuuu reacted with thumbs up emoji
All reactions
  • 👍 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fission21

Fission21 commented Aug 11, 2026

Copy link
Copy Markdown

https://www.peopleapp.com/column/30052861725-500007638386
image
这是官方的解释,所有想把token改成词元的,官方背书是这样背书的, 在github这就不是一个单纯的技术翻译问题讨论,一部分人想把中国国内特供的思想污染到整个社区,即便是这个社区被GFW屏蔽了,WIFI,APP, 此类缩写简单好记,你可以曾见过强推中文译名? token 就是token 不需要中译中

SublimeCT, Ion-nsx, Fission21, Fido6, Ellieee9y, OrihaWeave, hackroid, and VicZhang6 reacted with thumbs up emoji PixelGeek325, demo-zexuan, iamshen, Redroadsl, Hamakaze1s, heiqiu47, xieyuanqing, chenxuuu, and shiratori3 reacted with thumbs down emoji
All reactions
  • 👍 8 reactions
  • 👎 9 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gitkeniwo

gitkeniwo commented Aug 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

词元 the word itself is objectively bad and fundamentally incorrect as tokens could be larger than words(词) or span over word boundaries. Tokenizers do not operate on 词 but rather on byte streams. There is nothing 元 about tokens at all with respect to splitting up words.

hackroid reacted with thumbs up emoji PixelGeek325 and chenxuuu reacted with thumbs down emoji
All reactions
  • 👍 1 reaction
  • 👎 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cfmj

cfmj commented Aug 11, 2026

Copy link
Copy Markdown

提反对意见的一律打上反中标签,还是这个熟悉的味道

565ed83e-1eaf-498a-8ed9-2bad50dd78f7 你又在装什么呢
PixelGeek325, ybybwdwd, demo-zexuan, lvshp, htwyay, heiqiu47, xieyuanqing, and shiratori3 reacted with thumbs up emoji Ion-nsx, Fission21, and hackroid reacted with thumbs down emoji
All reactions
  • 👍 8 reactions
  • 👎 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@demo-zexuan

demo-zexuan commented Aug 11, 2026

Copy link
Copy Markdown

一帮人政治漏阴癖真的是服了😅😅😅

https://zh.wikipedia.org/wiki/Token

PixelGeek325, demo-zexuan, Fission21, cfmj, and chenxuuu reacted with thumbs up emoji Ion-nsx and hackroid reacted with thumbs down emoji
All reactions
  • 👍 5 reactions
  • 👎 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Ion-nsx
This comment was marked as a violation of GitHub Acceptable Use Policies
@xq546247083

xq546247083 commented Aug 11, 2026

Copy link
Copy Markdown

提反对意见的一律打上反中标签,还是这个熟悉的味道

565ed83e-1eaf-498a-8ed9-2bad50dd78f7 你又在装什么呢

傻逼🖕🖕🖕🖕

你这种人好恶心啊。说就说,骂人干嘛?素质极其低。

demo-zexuan and cfmj reacted with thumbs up emoji Ion-nsx reacted with thumbs down emoji
All reactions
  • 👍 2 reactions
  • 👎 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@demo-zexuan

demo-zexuan commented Aug 11, 2026

Copy link
Copy Markdown

@Hona Hi~ If possible, please close the comment section of this issue as soon as possible. Some irrational people have begun to personally attack under the comment.

At present, the following discussion is completely full of political and personal attacks, which is no longer relevant to the opencode project.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Ion-nsx
This comment was marked as a violation of GitHub Acceptable Use Policies
@demo-zexuan

demo-zexuan commented Aug 11, 2026

Copy link
Copy Markdown

提反对意见的一律打上反中标签,还是这个熟悉的味道

565ed83e-1eaf-498a-8ed9-2bad50dd78f7 你又在装什么呢

傻逼🖕🖕🖕🖕

你这种人好恶心啊。说就说,骂人干嘛?素质极其低。

骂的就是你🖕🖕

@Hona At present, the comment area has been introduced into meaningless personal attacks by such people, which is not good news for the opencode community. It‘s ridiculous.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@xq546247083

xq546247083 commented Aug 11, 2026

Copy link
Copy Markdown

提反对意见的一律打上反中标签,还是这个熟悉的味道

565ed83e-1eaf-498a-8ed9-2bad50dd78f7 你又在装什么呢

傻逼🖕🖕🖕🖕

你这种人好恶心啊。说就说,骂人干嘛?素质极其低。

骂的就是你🖕🖕

对对对,继续骂。我好难受。

LuShouPeng reacted with thumbs up emoji Ion-nsx reacted with thumbs down emoji
All reactions
  • 👍 1 reaction
  • 👎 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Ion-nsx
This comment was marked as a violation of GitHub Acceptable Use Policies
@xq546247083

xq546247083 commented Aug 11, 2026

Copy link
Copy Markdown

提反对意见的一律打上反中标签,还是这个熟悉的味道

565ed83e-1eaf-498a-8ed9-2bad50dd78f7 你又在装什么呢

傻逼🖕🖕🖕🖕

你这种人好恶心啊。说就说,骂人干嘛?素质极其低。

骂的就是你🖕🖕

对对对,继续骂。我好难受。

傻逼🖕

哈哈

LuShouPeng reacted with thumbs up emoji Ion-nsx reacted with thumbs down emoji
All reactions
  • 👍 1 reaction
  • 👎 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fido6

Fido6 commented Aug 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

1.此处传入的内容并非api key,故原始的 "令牌" 翻译为错误翻译,“词元”为正确翻译。
2.因为国内的这个"词元"官方翻译,我已经见到国内很多媒体将api token翻译为"词元"了,所以我感觉此处的“token”不用翻译

=================

  1. The content passed here is not an API key; therefore, the original translation of "token" as "令牌" (lingpai) is incorrect, whereas "词元" (ciyuan) is the correct translation.
  2. Given that "词元" is the official domestic translation—and I have already seen many domestic media outlets translating "API token" as "词元"—I feel that the word "token" here does not need to be translated.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Aug 11, 2026
[2026-08-10] How I use LLMs to learn complex topics jiacai2050/mofish#1543
Open
@yeliex

yeliex commented Aug 11, 2026

Copy link
Copy Markdown

Actually just keeping Token better than 令牌 or 词元. The 令牌 was a wrong translation in the wrong scene, but 词元 even not a currect Chinese spelling. It looks ugly to use 词元 as the translation for token, the word created by goverment media workers who knows nothing with LLM or Agents, just for political intentions.

Ion-nsx, hackroid, and VicZhang6 reacted with thumbs up emoji hangyan and chenxuuu reacted with thumbs down emoji
All reactions
  • 👍 3 reactions
  • 👎 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yeliex

yeliex commented Aug 11, 2026

Copy link
Copy Markdown

Before 词元, nobody in China called 令牌 for Token, we just called it Token. Give everything a Chinese translation, even not works well in daily life looks wired.

Ion-nsx and hackroid reacted with thumbs up emoji hangyan and chenxuuu reacted with thumbs down emoji
All reactions
  • 👍 2 reactions
  • 👎 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@OrihaWeave

OrihaWeave commented Aug 11, 2026

Copy link
Copy Markdown

OpenCode should not use such a terrible translation.

By the way, this is a politically charged translation that should absolutely not be accepted by the open-source community.

hackroid and Ion-nsx reacted with thumbs up emoji hangyan, chenxuuu, and LuShouPeng reacted with thumbs down emoji
All reactions
  • 👍 2 reactions
  • 👎 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hackroid

hackroid commented Aug 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

看完这条thread这下不得不支持词元了,想看这堆📍CN的起号小鬼和词元组一辈子代码😋赞成割裂,加速不要停🫡反正就是个翻译,爱用en用en爱用zh用zh,何苦互相为难呢

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Zhou-Shilin

Zhou-Shilin commented Aug 11, 2026

Copy link
Copy Markdown

@Hona I would recommend locking this conversation at this point to prevent further unnecessary debate.

Regarding the terminology, I strongly suggest keeping the original English word Token rather than translating it to 词元. The general consensus among Chinese developers and tech professionals is that 词元 is an awkward and suboptimal translation. In the Chinese tech community—both in day-to-day discussions and in formal technical documentation—it is standard practice to retain well-established English terms like Token as they are. Keeping it in English will feel much more natural and accurate to native readers.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mamawai

mamawai commented Aug 11, 2026

Copy link
Copy Markdown

很难理解么,我觉得译成词元没问题,跟政府有什么关系?
image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@anomalyco anomalyco locked as too heated and limited conversation to collaborators Aug 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@Hona Hona Awaiting requested review from Hona
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

i18n(zh): token translated as 令牌 reads oddly in LLM context

Uh oh!

There was an error while loading. Please reload this page.

20 participants

@Speechlessmanbilibili @Hona @SlightDust @Eronana @Rin313 @zce @silicon14 @dmwin72015 @hangyan @cfmj @tqtij03440 @hellodigua @rakshith1928 @yiding-he @Ion-nsx @pplab @StonerLing @ghidgdsr @Fission21 @dann2333
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.