terminal intl patch

pull/3342/head
drafish 2 years ago committed by Aniket
parent 2fb6dd80a4
commit 1a4c7a9c36
  1. 2
      apps/remix-ide/src/app/tabs/locales/en/terminal.json
  2. 2
      apps/remix-ide/src/app/tabs/locales/zh/terminal.json
  3. 3
      libs/remix-ui/terminal/src/lib/components/RenderKnownTransactions.tsx
  4. 3
      libs/remix-ui/terminal/src/lib/components/RenderUnknownTransactions.tsx
  5. 4
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -1,7 +1,9 @@
{
"terminal.listen": "listen on all transactions",
"terminal.listenTitle": "If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you",
"terminal.search": "Search with transaction hash or address",
"terminal.used": "used",
"terminal.debug": "Debug",
"terminal.welcomeText1": "Welcome to",
"terminal.welcomeText2": "Your files are stored in",
"terminal.welcomeText3": "You can use this terminal to",

@ -1,7 +1,9 @@
{
"terminal.listen": "监听所有交易",
"terminal.listenTitle": "如果选中,Remix 将监听在当前环境中挖掘到的所有交易,而不仅仅是您创建的交易",
"terminal.search": "按交易哈希或地址搜索",
"terminal.used": "已使用",
"terminal.debug": "调试",
"terminal.welcomeText1": "欢迎使用",
"terminal.welcomeText2": "您的文件储存在",
"terminal.welcomeText3": "您可使用此终端",

@ -1,5 +1,6 @@
import React from 'react' // eslint-disable-line
import { FormattedMessage } from 'react-intl'
import CheckTxStatus from './ChechTxStatus' // eslint-disable-line
import Context from './Context' // eslint-disable-line
import showTable from './Table'
@ -31,7 +32,7 @@ const RenderKnownTransactions = ({ tx, receipt, resolvedData, logs, index, plugi
data-shared='txLoggerDebugButton'
data-id={`txLoggerDebugButton${tx.hash}`}
onClick={(event) => debug(event, tx)}
>Debug</div>
><FormattedMessage id='terminal.debug' /></div>
</div>
<i className={`remix_ui_terminal_arrow fas ${(showTableHash.includes(tx.hash)) ? 'fa-angle-up' : 'fa-angle-down'}`}></i>
</div>

@ -1,4 +1,5 @@
import React, { useState } from 'react' // eslint-disable-line
import { FormattedMessage } from 'react-intl'
import CheckTxStatus from './ChechTxStatus' // eslint-disable-line
import Context from './Context' // eslint-disable-line
import showTable from './Table'
@ -27,7 +28,7 @@ const RenderUnKnownTransactions = ({ tx, receipt, index, plugin, showTableHash,
data-shared='txLoggerDebugButton'
data-id={`txLoggerDebugButton${tx.hash}`}
onClick={(event) => debug(event, tx)}
>Debug</div>
><FormattedMessage id='terminal.debug' /></div>
</div>
<i className = {`remix_ui_terminal_arrow fas ${(showTableHash.includes(tx.hash)) ? 'fa-angle-up' : 'fa-angle-down'}`}></i>
</div>

@ -464,11 +464,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
id="listenNetworkCheck"
onChange={listenOnNetwork}
type="checkbox"
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you"
title={intl.formatMessage({ id: 'terminal.listenTitle' })}
/>
<label
className="pt-1 form-check-label custom-control-label text-nowrap"
title="If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you"
title={intl.formatMessage({ id: 'terminal.listenTitle' })}
htmlFor="listenNetworkCheck"
data-id="listenNetworkCheckInput"
>

Loading…
Cancel
Save