Repository navigation
Conversation
- 根因:pickText 只读 index.json 的 zh/en,zh-Hant 读 zh、其余 8 种读 en,索引写了别的语言也不认。 - 改用 core/language.ts 的 pick:索引里有的语言直接用,缺的照旧回退。作者写的 locales、自描述仍只读 zh/en。 - 新测试:ja 读索引的 ja,de 回退 en,zh-Hant 回退 zh;改动前 ja 那条失败。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
扩展市场的标签名、悬停说明、官方备注和拉黑原因都来自索引仓
index.json。之前market.ts只读里面的zh/en:zh-Hant 读 zh,其余 8 种界面语言读 en。现在改用core/language.ts的pick读,索引里写了哪种语言就显示哪种,缺的语言照旧回退(zh-Hant 读 zh,其余读 en)。index.json里的文字类型从{ zh, en }改成LanguageTable<string>;作者写的locales、自描述照旧只读 zh/en。i18n/tag-languages分支:https://github.com/Pal-AI-Lab/cortico-extensions/pull/741。两个 PR 先合哪个都行:旧版 Cortico 读新索引时忽略多出来的语言键。vendor/cortico里的同一份market.ts,这个 PR 合并后 Coopanion 要升一次子模块。验证:
pnpm test、pnpm run typecheck、pnpm typecheck:web。另外用一个 scratch 版 dev WebUI,让标签数据走真实的ExtensionMarket.merge、读新索引,切到日文和德文后,扩展市场的标签名和悬停说明都显示为对应语言。🤖 Generated with Claude Code