掘金 · 分类· 黄连木笛·· 20 小时前AI 评分32
不改一行 Postman 源码:用 Electron preload 注入与 fetch 拦截实现汉化
不改一行 Postman 源码,把它汉化了:Electron preload 注入 + fetch 拦截实战
AI 导读
postman-chinese-injector 不改 Postman 源码,而是在 Electron preload 中包装 window.fetch 和 XMLHttpRequest,拦截 en-US / ja 语言包响应并 deep-merge 中文 key 树后返回。
来源:掘金 · 分类 · juejin.cn