Skip to content

Releases: Pectics/claude-i18n

v1.1.2

Choose a tag to compare

@Pectics Pectics released this 13 Jun 08:44
Immutable release. Only release title and notes can be modified.

Nothing new

Note

  • 适配上游 claude.ai 将关键词 statsig 替换为 dynamic 的策略

v1.1.1

Choose a tag to compare

@Pectics Pectics released this 26 May 09:03

本版本重点是把 Claude i18n 的请求拦截逻辑从“依赖固定接口路径”升级为“依赖 locale 参数与响应结构本身”。此后 Claude Web 前端即使新增或调整部分接口,只要仍然沿用相同的 locale 传递方式,扩展就不需要频繁跟着发新版本。与此同时,这一版也同步简化了远端 locales.json 的结构,并保持了现有 lazy cache 更新链路的一致性。

What's new

  • 将按路径特判的 locale 拦截逻辑重构为通用匹配:统一检查 query 中的 locale 与请求 body 中的 locale
  • 补齐通用 body 改写支持,覆盖 application/jsonapplication/x-www-form-urlencodedURLSearchParamsFormData
  • 统一 same-origin JSON 响应的 locale 回写逻辑,自动处理顶层 localegated_messages.locale
  • 将远端 locales.json 简化为纯字符串数组结构
  • 同步调整扩展侧的远端 locale 列表 lazy load 与缓存读取逻辑,以适配新的 manifest 格式

Notes

  • 这一版的核心目标是提升对 Claude Web 前端变动的兼容性,减少因为新增接口而频繁更新扩展的需要
  • 语言文件缓存策略保持不变,仍然基于远端 /version/{locale}.json 的 hash 信息与本地缓存协同更新
  • 当前统一的是 fetch 请求链路,XMLHttpRequest 兼容暂未纳入本次版本范围

v1.1.0

Choose a tag to compare

@Pectics Pectics released this 26 May 02:00

这是一次偏底层的稳定性升级。v1.1.0 重构了扩展的运行链路,将页面拦截、桥接通信和后台缓存拆分为 hook.jsscript.jsservice.js 三层,整体更容易维护,也更能跟上 Claude Web 最近的前端变化。

What's new

  • 重构扩展架构,页面逻辑、消息桥接、缓存下载职责分离
  • 扩展 locale 的后端请求统一回退为 en-US,并在关键响应中恢复为扩展 locale
  • 新增对 account_profilebootstrap/app_startexperiences/claude_web 等请求链路的兼容处理
  • /i18n/*.overrides.json 现在会被稳定拦截并返回空对象,避免扩展语言切换被异常响应打断
  • 扩展支持语言列表改为从远端 /locales.json lazy load,并缓存到本地
  • 语言包更新改为基于 /version/{locale}.json 的 hash 校验
  • 语言包版本信息存储在 chrome.storage.local,正文存储在 Cache Storage,减少重复下载并提升切换速度
  • 当前简体中文语言包已覆盖 15,058 条文本(主语言包 15,012 + Statsig 46)

Notes

  • 这是一次以稳定性、可维护性和缓存策略为主的版本更新
  • 如果升级后没有立即生效,刷新一次 claude.ai 页面即可

v1.0.2

Choose a tag to compare

@Pectics Pectics released this 15 Apr 09:21

Highlights

  • Restored smooth language switching after Claude Web changed its frontend runtime logic.
  • Moved the page hook into the main world so the runtime i18n store can be captured reliably again.
  • Stubbed the new gated-messages request path for extension locales, preventing 404 HTML responses from breaking locale switches.
  • Added self-healing cache validation so stale invalid payloads are purged automatically instead of poisoning future i18n loads.
  • Updated the installation docs with the live Chrome Web Store and Microsoft Edge Add-ons listings.

Assets

  • claude-i18n-v1.0.2.crx: packaged Chrome/Edge extension build
  • claude-i18n-v1.0.2.zip: unpacked-extension zip for manual installation or store submission workflows

v1.0.1

Choose a tag to compare

@Pectics Pectics released this 10 Apr 05:03

没有更新,只是为了适配 Edge 在版本号上的限制。

Full Changelog: v1.0...v1.0.1

v1.0

Choose a tag to compare

@Pectics Pectics released this 10 Apr 00:36