debugger intl patch

pull/3342/head
drafish 2 years ago committed by Aniket
parent 09de69a52a
commit 2fb6dd80a4
  1. 3
      apps/remix-ide/src/app/tabs/locales/en/debugger.json
  2. 3
      apps/remix-ide/src/app/tabs/locales/zh/debugger.json
  3. 6
      libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx

@ -4,5 +4,8 @@
"debugger.stopDebugging": "Stop debugging",
"debugger.startDebugging": "Start debugging",
"debugger.placeholder": "Transaction hash, should start with 0x",
"debugger.debugLocaNodeLabel": "Force using local node",
"debugger.useGeneratedSources": "Use generated sources",
"debugger.debugWithGeneratedSources": "Debug with generated sources",
"debugger.introduction": "When Debugging with a transaction hash, if the contract is verified, Remix will try to fetch the source code from Sourcify or Etherscan. Put in your Etherscan API key in the Remix settings. For supported networks, please see"
}

@ -4,5 +4,8 @@
"debugger.stopDebugging": "停止调试",
"debugger.startDebugging": "开始调试",
"debugger.placeholder": "交易哈希, 应该以 0x 开头",
"debugger.debugLocaNodeLabel": "强制使用本地节点",
"debugger.useGeneratedSources": "使用生成的源",
"debugger.debugWithGeneratedSources": "使用生成的源进行调试",
"debugger.introduction": "当使用交易哈希调试时, 如果该合约已被验证, Remix 会试图从 Sourcify 或 Etherscan 获取源码. 在 Remix 中设置您的 Etherscan API key. 有关受支持的网络,请参阅"
}

@ -375,7 +375,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
return { ...prevState, opt: { ...prevState.opt, debugWithGeneratedSources: checked } }
})
}} type="checkbox" />
<label data-id="debugGeneratedSourcesLabel" className="form-check-label custom-control-label" htmlFor="debugGeneratedSourcesInput">Use generated sources (Solidity {'>='} v0.7.2)</label>
<label data-id="debugGeneratedSourcesLabel" className="form-check-label custom-control-label" htmlFor="debugGeneratedSourcesInput"><FormattedMessage id='debugger.useGeneratedSources' /> (Solidity {'>='} v0.7.2)</label>
</span>
)
return (
@ -386,7 +386,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
<div className="mt-2 mb-2 debuggerConfig custom-control custom-checkbox">
<CustomTooltip
tooltipId="debuggerGenSourceCheckbox"
tooltipText={"Debug with generated sources"}
tooltipText={<FormattedMessage id='debugger.debugWithGeneratedSources' />}
placement="top-start"
>
{customJSX}
@ -398,7 +398,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
return { ...prevState, opt: { ...prevState.opt, debugWithLocalNode: checked } }
})
}} type="checkbox" title="Force the debugger to use the current local node" />
<label data-id="debugLocaNodeLabel" className="form-check-label custom-control-label" htmlFor="debugWithLocalNodeInput">Force using local node</label>
<label data-id="debugLocaNodeLabel" className="form-check-label custom-control-label" htmlFor="debugWithLocalNodeInput"><FormattedMessage id='debugger.debugLocaNodeLabel' /></label>
</div>
}
{ state.validationError && <span className="w-100 py-1 text-danger validationError">{state.validationError}</span> }

Loading…
Cancel
Save