美文网首页
[原创]postman最新版手动汉化方法 自力更新办法

[原创]postman最新版手动汉化方法 自力更新办法

作者: 吉凶以情迁 | 来源:发表于2021-12-11 09:05 被阅读0次

C:\Users\qssq5\AppData\Local\Postman\app-9.4.0\resources
中解压app.asar

npm install -g asar asar extract 压缩文件 解压文件夹

asar pack 文件夹 压缩文件名
解压改名文件夹为app文件夹
C:\Users\qssq5\AppData\Local\Postman\app-9.4.0\resources\app

如C:\Users\qssq5\AppData\Local\Postman\app-9.4.0\resources\app\js\scratchpad\vendor-shared.js

其中label都是代表可以汉化的。



ActiveWorkspaceStore").id,n=Object(T.getSessionId)(U.COLLECTION,this.collectionId,t);return Object(w.getStore)("PermissionStore").can("edit","collection",this.collectionId)?O.default.get({id:n}).then((r=>{if(r)return Object(_.default)(Object(S.createEvent)("update",U.AUTH_SESSION,e.assign({},e.cloneDeep(r),{value:Object(v.toJS)(this.authSession)})));if(!e.isEmpty(this.authSession)){const e={id:n,model:U.COLLECTION,modelId:this.collectionId,workspace:t,value:Object(v.toJS)(this.authSession)};return Object(_.default)(Object(S.createEvent)("create",U.AUTH_SESSION,e))}})):Promise.resolve()}unsetContext(e){this.additionalContext&&delete this.additionalContext[e]}getActions(){const e=Object(w.getStore)("PermissionStore"),t=Object(w.getStore)("CurrentUserStore"),n=Object(w.getStore)("ActiveWorkspaceStore").id,r=Object(w.getStore)("ForkedCollectionStore").find(this.uid),i=Boolean(r&&r.id),{userCanSave:a,userCanSaveAndSync:o}=Object(w.getStore)("OnlineStatusStore");return[{type:L.ACTION_TYPE_FORK,label:"创建一个分叉",isEnabled:o,xpathLabel:"fork"},{type:L.ACTION_TYPE_PULL_REQUEST,label:"创建拉取请求",isEnabled:o&&i,xpathLabel:"pull-request"},{type:L.ACTION_TYPE_MERGE,label:"合并变更",isEnabled:o&&i,xpathLabel:"merge"},{type:L.ACTION_TYPE_PULL_CHANGES,label:"拉取更改",isEnabled:o&&this.isFork&&this.userCanPullChanges&&this.isOutOfSync,xpathLabel:"pull-changes",userCanPullChanges:this.userCanPullChanges,isFork:this.isFork,isOutOfSync:this.isOutOfSync},{type:L.ACTION_TYPE_DOWNLOAD,label:"导出",isEnabled:!0,xpathLabel:"export"},{type:L.ACTION_MANAGE_ROLES,label:"管理角色",isEnabled:o&&!!t.team,xpathLabel:"manageRoles"},{type:L.ACTION_REMOVE_FROM_WORKSPACE,label:"从工作区中移除",isEnabled:o&&e.can("removeCollection","workspace",n),xpathLabel:"remove"},{type:L.ACTION_TYPE_DELETE,label:"删除",shortcut:"delete",isEnabled:a&&e.can("delete","collection",this.collectionId),xpathLabel:"delete"}]}},y.editableKeys=["auth","preRequestScript","tests","variables","protocolProfileBehavior"],i=B((r=b).prototype,"isFork",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=B(r.prototype,"isOutOfSync",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o=B(r.prototype,"userCanPullChanges",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),s=B(r.prototype,"name",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=B(r.prototype,"activeTab",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return C.COLLECTION_AUTHORIZATION}}),c=B(r.prototype,"team",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=B(r.prototype,"watchersCount",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),d=B(r.prototype,"isWatching",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=B(r.prototype,"isWatchDisabled",[v.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=B(r.prototype,"isWatchersLoading",[v.observable],{configurable




image.png

如果不需要用解压的方式,可以直接再打包成asar


image.png
image.png

相关文章

网友评论

      本文标题:[原创]postman最新版手动汉化方法 自力更新办法

      本文链接:https://www.haomeiwen.com/subject/qxhkfrtx.html