Skip to content

Commit

Permalink
Merge pull request #48 from bnb-chain/fix/meson
Browse files Browse the repository at this point in the history
Fix/meson
  • Loading branch information
wenty22 authored Oct 24, 2024
2 parents 9558225 + 09da0a2 commit 9e53dd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 109 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
uses: actions/checkout@v4

- uses: ./.github/actions/setup
with:
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Install & build
shell: bash
Expand Down
111 changes: 3 additions & 108 deletions apps/canonical-bridge-ui/core/locales/en.ts
Original file line number Diff line number Diff line change
@@ -1,110 +1,5 @@
export const en = {
'seo.title': 'BNB Chain Bridge | Cross-Chain Transfer',
'seo.description':
'Bridge and transfer your assets between networks (Ethereum, Polygon and etc.) and BNB Chain blockchain ecosystem.',
'main.address.link.text': 'Token address:',
'header.network-status.wrong': 'Wrong network',

'support.stargate.soon': 'We will support Stargate soon',
'route.title': 'Select Bridge Routes',
'from.section.title': 'From',
'from.section.balance.title': 'Balance:',
'from.section.balance.button.max': 'Max:',
'to.section.title': 'To',
'to.section.estimated-amount': 'Est. Amount Receive',
'to.section.account.label': 'Destination Address',
'to.section.account.placeholder': 'Enter {network} Address',
'to.section.account.invalid': 'Invalid address.',
'to.section.confirm.text':
'I confirmed the address is correct and not an exchange or contract address. Any tokens sent to an incorrect address will be unrecoverable.',

'you.send.title': 'You Send',
'you.receive.title': 'You Receive',
'route.button.change-routes': 'Change Routes',
'route.title.select.routes': 'Select Bridge Routes',
'route.fees.title': 'Fees:',
'route.time.title': 'Time:',
'route.allowed-send-amount': 'Your send amount should be between {min} to {max} {symbol}',

'route.no-found.title': 'No Available Routes',
'route.no-found.desc': `Low liquidity, small input, or incompatible network/token. Adjust and retry.`,

'route.adjust.title': 'Adjust Send Amount',
'route.adjust.desc':
'The current bridge routes have limitations on the send amount. Please adjust and try again.',
'route.adjust.link': 'See Route Limitations',

'route.option.cBridge.title': 'cBridge',
'route.option.deBridge.title': 'deBridge',
'route.option.stargate.title': 'Stargate',
'route.option.layerZero.title': 'LayerZero',
'route.option.meson.title': 'Meson',
'route.option.tag.best-time': 'Fastest',
'route.option.tag.highest-amount': 'Best Return',
'route.option.info.estimated-time': 'Est. Time:',
'route.option.info.gas-fee': 'Gas Fee:',
'route.option.info.native-fee': 'Native Fee:',
'route.option.info.debridge-fee': 'deBridge Fee:',
'route.option.info.market-maker-fee': 'Market Maker Gas Costs:',
'route.option.info.base-fee': 'Base Fee:',
'route.option.info.lp-fee': 'Liquidity Providers:',
'route.option.info.service-fee': 'Service Fee:',
'route.option.info.protocol-fee': 'Protocol Fee:',

'route.error.amount.max': 'Your send amount must be less than {max}',
'route.error.amount.min': 'Your send amount must be greater than {min}',
'route.error.amount.digits': 'The send amount must be less than 6 digits',

'transfer.button.confirm': 'Send',
'transfer.button.approve': 'Approve',
'transfer.button.switch-network': 'Switch Network',
'transfer.button.wallet-connect': 'Connect Wallet',
'transfer.button.switch-wallet': 'Switch Wallet',
import { locales } from '@bnb-chain/canonical-bridge-widget';

'modal.approve.title': 'Approve Token',
'modal.approve.desc.1': 'Please approve at least ',
'modal.approve.desc.2': ' and initiate the transfer',
'modal.approve.button.confirm': 'Approve',
'modal.approve.button.close': 'Deny',

'modal.fail.title': 'Transaction Failed',
'modal.fail.desc': 'Your transaction failed to submit.\nPlease try again.',
'modal.fail.button.close': 'Try Again',

'modal.submit.title': 'Transaction Submitted',
'modal.submit.desc': 'Your on-chain transaction has been submitted successfully',
'modal.submit.button.view-tx': 'View Transaction',
'modal.submit.button.close': 'Make Another Transaction',

'select-modal.tag.incompatible': 'Incompatible',
'select-modal.search.no-result.title': 'No result found',
'select-modal.search.no-result.warning':
'Try adjusting your search request to find what you’re looking for',

'select-modal.token.title': 'Choose Token',
'select-modal.token.placeholder': 'Search token by name',
'select-modal.token.column.name': 'Name',
'select-modal.token.column.balance': 'Wallet Balance',
'select-modal.token.incompatible.tooltip':
'This token is incompatible by the source or destination network you’ve selected. Please change the network settings',

'select-modal.source.title': 'Source Network',
'select-modal.source.placeholder': 'Search network by name',

'select-modal.destination.title': 'Destination Network',
'select-modal.destination.placeholder': 'Search network by name',
'select-modal.destination.incompatible.tooltip':
'The token you’ve selected is incompatible with this network. Please select another token.',

'wallet.button.connect-wallet': 'Connect Wallet',
'wallet.network.wrong-network': 'Wrong network',
'wallet.error.switch-network':
'An error occurred when attempting to switch the network. Please select another network or try again.',
'wallet.popover.disconnect': 'Disconnect',
'wallet.preventing-modal.title': 'Oops!',
'wallet.preventing-modal.desc':
'Opening an app is not allowed on this site. Please go to BNB Chain Bridge site on your mobile browser to continue.',
'wallet.switching-modal.title': 'Switch Network in Wallet',
'wallet.switching-modal.desc':
'Please go to the settings page and switch the network to TRON Mainnet',
export const en = {
...locales.en,
};
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function useSortedTokens() {

let value: number | undefined;
if (balance !== undefined && price !== undefined) {
value = balance * price;
value = Number(balance) * price;
}

return {
Expand Down

0 comments on commit 9e53dd7

Please sign in to comment.