Skip to content

Commit

Permalink
feat: update cross-chain wording (#2192)
Browse files Browse the repository at this point in the history
* feat: update cross-chain wording

* fix: ESLint issue

* Update webapp/src/modules/translation/locales/en.json

Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com>
Signed-off-by: Juanma Hidalgo <juanma06@gmail.com>

---------

Signed-off-by: Juanma Hidalgo <juanma06@gmail.com>
Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com>
  • Loading branch information
juanmahidalgo and LautaroPetaccio committed Mar 18, 2024
1 parent b4bb110 commit 861b919
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ export const BuyWithCryptoModal = (props: Props) => {
<span className={styles.warning}>
{t('buy_with_crypto_modal.insufficient_funds', {
token: insufficientToken?.symbol || 'MANA',
orPayWithOtherToken: (text: string) => (!onBuyWithCard ? <span>{text}</span> : undefined),
card: (text: string) => (onBuyWithCard ? <span>{text}</span> : undefined)
})}
</span>
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/modules/translation/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@
"cross_chain": "Estimated fee includes the network cost and the cross chain purchase fee that you have to pay directly with your wallet.",
"same_network": "Estimated fee includes the network cost that you have to pay directly with your wallet."
},
"insufficient_funds": "You don’t have enough funds in {token} to pay for this item. Get MANA, pay with a different token<card>, or pay by card</card>.",
"insufficient_funds": "You don’t have enough funds in {token} to pay for this item. Get MANA, <orPayWithOtherToken>or </orPayWithOtherToken> pay with a different token<card>, or pay by card</card>.",
"token_and_chain_selector": {
"available_chains": "Available Chains",
"select_chain": "Select chain",
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/modules/translation/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@
"cross_chain": "La tarifa estimada incluye el costo de la red y la tarifa de compra entre cadenas que debe pagar directamente con su billetera.",
"same_network": "La tarifa estimada incluye el costo de la red que debes pagar directamente con tu billetera."
},
"insufficient_funds": "No tienes fondos suficientes en {token} para pagar este Item. Obtenga MANA, intente pagar con otro token<card> o pague con tarjeta</card>.",
"insufficient_funds": "No tienes fondos suficientes en {token} para pagar este Item. Obtenga MANA, <orPayWithOtherToken> o </orPayWithOtherToken> intente pagar con otro token<card> o pague con tarjeta</card>.",
"token_and_chain_selector": {
"available_chains": "Redes disponibles",
"select_chain": "Selecciona una red",
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/modules/translation/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@
"cross_chain": "预估费用包括网络费用和跨链购买费用,您必须直接用钱包支付。",
"same_network": "预计费用包括您必须直接用钱包支付的网络费用。"
},
"insufficient_funds": "您的 {token} 中没有足够的资金来支付此商品。获取 MANA,使用不同的令牌支付<card>,或通过卡支付</card>。",
"insufficient_funds": "您的 {token} 中没有足够的资金来支付此商品。获取 MANA、<orPayWithOtherToken> 或 </orPayWithOtherToken> 使用不同的令牌<card> 付款,或通过卡付款</card>。",
"token_and_chain_selector": {
"available_chains": "可用链",
"select_chain": "选择链条",
Expand Down

0 comments on commit 861b919

Please sign in to comment.