Commit 832220b0 authored by maggie-5miles's avatar maggie-5miles

fix several missing translations

parent 10c9581f
......@@ -24,6 +24,7 @@
"noLiquidity": "No liquidity.",
"unlockTokenCont": "Please unlock token to continue.",
"transactionDetails": "Transaction Details",
"hideDetails": "Hide Details",
"youAreSelling": "You are selling",
"orTransFail": "or the transaction will fail.",
"youWillReceive": "You will receive at least",
......@@ -52,6 +53,8 @@
"youWillMint": "You will mint",
"liquidityTokens": "liquidity tokens.",
"totalSupplyIs": "Current total supply of liquidity tokens is",
"youAreSettingExRate": "You are setting the initial exchange rate to",
"totalSupplyIs0": "Current total supply of liquidity tokens is 0.",
"tokenWorth": "At current exchange rate, each pool token is worth",
"firstLiquidity": "You are the first person to add liquidity!",
"initialExchangeRate": "The initial exchange rate will be set based on your deposits. Please make sure that your ETH and {{ label }} deposits have the same fiat value.",
......
......@@ -24,6 +24,7 @@
"noLiquidity": "没有流动金。",
"unlockTokenCont": "请解锁代币继续。",
"transactionDetails": "交易明细",
"hideDetails": "隐藏明细",
"youAreSelling": "你正在出售",
"orTransFail": "或交易失败。",
"youWillReceive": "你将收到至少",
......@@ -52,6 +53,8 @@
"youWillMint": "你将铸造",
"liquidityTokens": "流动代币。",
"totalSupplyIs": "当前流动代币的总量是",
"youAreSettingExRate": "你将初始兑换率设置为",
"totalSupplyIs0": "当前流动代币的总量是0。",
"tokenWorth": "当前兑换率下,每个资金池代币价值",
"firstLiquidity": "你是第一个添加流动金的人!",
"initialExchangeRate": "初始兑换率将由你的存入情况决定。请确保你存入的 ETH 和 {{ label }} 具有相同的法币价值。",
......
......@@ -432,7 +432,8 @@ class AddLiquidity extends Component {
return (
<ContextualInfo
key="context-info"
openModalText={t("transactionDetails")}
openDetailsText={t("transactionDetails")}
closeDetailsText={t("hideDetails")}
contextualInfo={contextualInfo}
isError={isError}
renderTransactionDetails={this.renderTransactionDetails}
......@@ -461,10 +462,10 @@ class AddLiquidity extends Component {
if (this.isNewExchange()) {
return (
<div>
<div className="pool__summary-item">You are adding {b(`${inputValue} ETH`)} and {b(`${outputValue} ${label}`)} to the liquidity pool.</div>
<div className="pool__summary-item">You are setting the initial exchange rate to {b(`1 ETH = ${BN(outputValue).dividedBy(inputValue).toFixed(4)} ${label}`)}.</div>
<div className="pool__summary-item">You will mint {b(`${inputValue} liquidity tokens`)}.</div>
<div className="pool__summary-item">Current total supply of liquidity tokens is 0.</div>
<div className="pool__summary-item">{t("youAreAdding")} {b(`${inputValue} ETH`)} {t("and")} {b(`${outputValue} ${label}`)} {t("intoPool")}</div>
<div className="pool__summary-item">{t("youAreSettingExRate")} {b(`1 ETH = ${BN(outputValue).dividedBy(inputValue).toFixed(4)} ${label}`)}.</div>
<div className="pool__summary-item">{t("youWillMint")} {b(`${inputValue}`)} {t("liquidityTokens")}</div>
<div className="pool__summary-item">{t("totalSupplyIs0")}</div>
</div>
);
}
......
......@@ -184,7 +184,8 @@ class RemoveLiquidity extends Component {
return (
<ContextualInfo
key="context-info"
openModalText={t("transactionDetails")}
openDetailsText={t("transactionDetails")}
closeDetailsText={t("hideDetails")}
contextualInfo={contextualInfo}
isError={isError}
renderTransactionDetails={this.renderTransactionDetails}
......
......@@ -570,7 +570,8 @@ class Send extends Component {
return (
<ContextualInfo
openModalText={t("transactionDetails")}
openDetailsText={t("transactionDetails")}
closeDetailsText={t("hideDetails")}
contextualInfo={contextualInfo}
isError={isError}
renderTransactionDetails={this.renderTransactionDetails}
......
......@@ -556,7 +556,8 @@ class Swap extends Component {
return (
<ContextualInfo
openModalText={t("transactionDetails")}
openDetailsText={t("transactionDetails")}
closeDetailsText={t("hideDetails")}
contextualInfo={contextualInfo}
isError={isError}
renderTransactionDetails={this.renderTransactionDetails}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment