Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add dot. #2303

Merged
merged 10 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const DescriptionCrossChain = (
link: `${APP_PATHS.CROSS_CHAIN}?tab=${CrossChainTab.HISTORY}`,
summary: isSuccess
? t`${amountIn} ${srcTokenSymbol} on ${srcChainName} has been successfully swapped to ${amountOut} ${dstTokenSymbol} on ${dstChainName}`
: t`There was an issue with swapping ${amountIn} ${srcTokenSymbol} on ${srcChainName} to ${amountOut} ${dstTokenSymbol} on ${dstChainName}. Your assets remain in your wallet`,
: t`There was an issue with swapping ${amountIn} ${srcTokenSymbol} on ${srcChainName} to ${amountOut} ${dstTokenSymbol} on ${dstChainName}. Your assets remain in your wallet.`,
}
}
export default DescriptionCrossChain
4 changes: 2 additions & 2 deletions src/components/Announcement/Popups/TransactionPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const summaryClaim = (txs: TransactionDetails) => {
}

const summaryStakeUnstakeFarm = (txs: TransactionDetails) => {
return txs.type === TRANSACTION_TYPE.STAKE ? t`Stake liquidity into farm` : t`Unstake liquidity from farm`
return txs.type === TRANSACTION_TYPE.STAKE ? t`Stake liquidity into farm` : t`Unstake liquidity from farm.`
}

// ex: elastic add liquidity 30 knc and 40 usdt
Expand Down Expand Up @@ -105,7 +105,7 @@ const summaryDelegateDao = (txs: TransactionDetails) => {
? t`undelegated your voting power`
: t`delegated voting power to ${contract.slice(0, 6)}...${contract.slice(-4)}`

return { success: t`You have successfully ${summary}`, error: t`Error ${summary}` }
return { success: t`You have successfully ${summary}`, error: t`Error ${summary}.` }
}

const summaryCancelLimitOrder = (txs: TransactionDetails) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/AppHaveUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const AppHaveUpdate = () => {
return (
<Wrapper>
<Text>
<Trans>New contents are available</Trans>
<Trans>New contents are available.</Trans>
</Text>
<ButtonPrimary
style={{ width: 'fit-content', padding: '8px 20px', margin: 'auto', marginTop: '1rem' }}
Expand Down
6 changes: 4 additions & 2 deletions src/components/Badge/RangeBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export default function RangeBadge({
) : inRange ? (
<MouseoverTooltip
text={
<Trans>The price of this pool is within your selected range. Your position is currently earning fees</Trans>
<Trans>
The price of this pool is within your selected range. Your position is currently earning fees.
</Trans>
}
>
<Badge variant={BadgeVariant.PRIMARY} style={{ padding: hideText ? '4px' : undefined }}>
Expand All @@ -70,7 +72,7 @@ export default function RangeBadge({
text={
<Trans>
The price of this pool is outside of your selected price range. Currently, your position is not earning
any fees or rewards
any fees or rewards.
</Trans>
}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/web3/NetworkModal/Networks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const Networks = ({
text={
disabled
? isMaintenance
? t`Chain under maintenance. We will be back as soon as possible`
? t`Chain under maintenance. We will be back as soon as possible.`
: disabledMsg
: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/web3/SelectNetwork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ function SelectNetwork(): JSX.Element | null {
</NetworkSwitchContainer>
<NetworkModal
selectedId={chainId}
disabledMsg={t`Unsupported by your wallet`}
disabledMsg={t`Unsupported by your wallet.`}
activeChainIds={walletSupportsChain}
/>
</NetworkCard>
)
if (disableSelectNetwork)
return (
<MouseoverTooltip text={t`Unable to switch network. Please try it on your wallet`}>{button}</MouseoverTooltip>
<MouseoverTooltip text={t`Unable to switch network. Please try it on your wallet.`}>{button}</MouseoverTooltip>
)
return button
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/web3/SelectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function Web3StatusInner() {
>
sign-in
</span>{' '}
to link your wallet to a profile. This will allow us to offer you a better experience
to link your wallet to a profile. This will allow us to offer you a better experience.
</Trans>
</Text>
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/web3/WalletModal/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const Option = ({

if (walletKey === 'WALLET_CONNECT') {
return (
<MouseoverTooltip placement="bottom" text={<Trans>Under development and unsupported by most wallets</Trans>}>
<MouseoverTooltip placement="bottom" text={<Trans>Under development and unsupported by most wallets.</Trans>}>
{content}
</MouseoverTooltip>
)
Expand Down
6 changes: 3 additions & 3 deletions src/components/NavigationTabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ export function AddRemoveTabs({
text={
tooltip ||
(action === LiquidityAction.CREATE
? t`Create a new liquidity pool and earn fees on trades for this token pair`
? t`Create a new liquidity pool and earn fees on trades for this token pair.`
: action === LiquidityAction.ADD
? t`Add liquidity for a token pair and earn fees on the trades that are in your selected price range`
? t`Add liquidity for a token pair and earn fees on the trades that are in your selected price range.`
: action === LiquidityAction.INCREASE
? ''
: action === LiquidityAction.REMOVE
? t`Removing pool tokens converts your position back into underlying tokens at the current rate, proportional to your share of the pool. Accrued fees are included in the amounts you receive`
? t`Removing pool tokens converts your position back into underlying tokens at the current rate, proportional to your share of the pool. Accrued fees are included in the amounts you receive.`
: '')
}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/PoolList/ItemCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const ItemCard = ({ poolData, myLiquidity }: ListItemProps) => {
)}

{isWarning && (
<MouseoverTooltip text={`One of the tokens in the pool is close to 0%. Pool might become inactive soon`}>
<MouseoverTooltip text={`One of the tokens in the pool is close to 0%. Pool might become inactive soon.`}>
<IconWrapper
style={{
background: theme.warning,
Expand Down Expand Up @@ -268,7 +268,7 @@ const ItemCard = ({ poolData, myLiquidity }: ListItemProps) => {
placement="right"
text={
!isFarmingPool ? (
<Trans>Estimated return from trading fees if you participate in the pool</Trans>
<Trans>Estimated return from trading fees if you participate in the pool.</Trans>
) : (
<APRTooltipContent farmAPR={farmAPR || 0} poolAPR={Number(oneYearFL)} />
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/PoolList/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const ListItem = ({ poolData, userLiquidityPositions }: ListItemGroupProps) => {
</MouseoverTooltip>
)}
{isWarning && (
<MouseoverTooltip text={`One of the tokens in the pool is close to 0%. Pool might become inactive soon`}>
<MouseoverTooltip text={`One of the tokens in the pool is close to 0%. Pool might become inactive soon.`}>
<IconWrapper style={{ background: theme.warning, marginLeft: '6px' }}>
<AlertTriangle color={theme.textReverse} size={12} />
</IconWrapper>
Expand Down
2 changes: 1 addition & 1 deletion src/components/PoolList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const PoolList = ({ currencies, searchValue, isShowOnlyActiveFarmPools, onlyShow
''
)}
</ClickableText>
<InfoHelper text={t`Estimated return based on yearly fees of the pool`} />
<InfoHelper text={t`Estimated return based on yearly fees of the pool.`} />
</Flex>
<Flex alignItems="center" justifyContent="flex-end">
<ClickableText
Expand Down
4 changes: 2 additions & 2 deletions src/components/PositionCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export default function FullPositionCard({
}

return (
<MouseoverTooltip width="fit-content" placement="top" text={<Trans>Available for yield farming</Trans>}>
<MouseoverTooltip width="fit-content" placement="top" text={<Trans>Available for yield farming.</Trans>}>
<Link to={goToFarmPath}>
<FarmingIcon />
</Link>
Expand Down Expand Up @@ -544,7 +544,7 @@ export default function FullPositionCard({
<MouseoverTooltip
text={
warningToken ? (
<WarningMessage>{t`Note: ${warningToken} is now <10% of the pool. Pool might become inactive if ${warningToken} reaches 0%`}</WarningMessage>
<WarningMessage>{t`Note: ${warningToken} is now <10% of the pool. Pool might become inactive if ${warningToken} reaches 0%.`}</WarningMessage>
) : (
<WarningMessage>
<Trans>One token is close to 0% in the pool ratio. Pool might go inactive.</Trans>
Expand Down
6 changes: 3 additions & 3 deletions src/components/ProAmm/ProAmmPriceRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function ProAmmPriceRange({
<Trans>Selected Price Range</Trans>
</Text>
<InfoHelper
text={t`Represents the range where all your liquidity is concentrated. When market price of your token pair is no longer between your selected price range, your liquidity becomes inactive and you stop earning fees`}
text={t`Represents the range where all your liquidity is concentrated. When market price of your token pair is no longer between your selected price range, your liquidity becomes inactive and you stop earning fees.`}
placement={'right'}
size={12}
></InfoHelper>
Expand Down Expand Up @@ -94,7 +94,7 @@ export default function ProAmmPriceRange({
<Trans>Min Price</Trans>
</Text>
<InfoHelper
text={t`Your position will be 100% composed of ${baseCurrency?.symbol} at this price`}
text={t`Your position will be 100% composed of ${baseCurrency?.symbol} at this price.`}
placement={'right'}
size={12}
/>
Expand All @@ -112,7 +112,7 @@ export default function ProAmmPriceRange({
<Trans>Max Price</Trans>
</Text>
<InfoHelper
text={t`Your position will be 100% composed of ${quoteCurrency?.symbol} at this price`}
text={t`Your position will be 100% composed of ${quoteCurrency?.symbol} at this price.`}
placement={'right'}
size={12}
/>
Expand Down
3 changes: 2 additions & 1 deletion src/components/ProAmm/ProAmmPriceRangeConfirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default function ProAmmPriceRangeConfirm({
<ExternalLink href="https://docs.kyberswap.com/getting-started/foundational-topics/decentralized-finance/slippage">
here ↗
</ExternalLink>
.
</Trans>
</Text>
}
Expand Down Expand Up @@ -162,7 +163,7 @@ export default function ProAmmPriceRangeConfirm({
>
{formatTickPrice(priceUpper, ticksAtLimit, Bound.UPPER)}
<InfoHelper
text={t`Your position will be 100% composed of ${quoteCurrency?.symbol} at this price`}
text={t`Your position will be 100% composed of ${quoteCurrency?.symbol} at this price.`}
placement={'right'}
size={12}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchModal/CurrencySearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export function CurrencySearch({
</RowBetween>
<Text style={{ color: theme.subText, fontSize: 12 }}>
<Trans>
You can search and select <span style={{ color: theme.text }}>any token</span> on KyberSwap
You can search and select <span style={{ color: theme.text }}>any token</span> on KyberSwap.
</Trans>
</Text>

Expand Down
4 changes: 2 additions & 2 deletions src/components/SlippageWarningNote/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const SlippageWarningNote: FC<Props> = ({ className, rawSlippage, isStablePairSw
return null
}

let msg = 'is high. Your transaction may be front-run'
let msg = 'is high. Your transaction may be front-run.'
if (slippageStatus === SLIPPAGE_STATUS.LOW) {
msg = 'is low. Your transaction may fail'
msg = 'is low. Your transaction may fail.'
}
const shortText = (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const SwapButtonWithPriceImpact = ({
text={
<Trans>
To ensure you dont lose funds due to very high price impact (≥10%), swap has been disabled for this trade.
If you still wish to continue, you can turn on Degen Mode from Settings
If you still wish to continue, you can turn on Degen Mode from Settings.
</Trans>
}
>
Expand All @@ -112,7 +112,7 @@ export const SwapButtonWithPriceImpact = ({
text={
<Trans>
There was an issue while trying to find a price for these tokens. Please try again. Otherwise, you may
select some other tokens to swap
select some other tokens to swap.
</Trans>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export default function ConfirmSwapModalContent({
text={
<Trans>
To ensure you dont lose funds due to very high price impact (≥10%), swap has been disabled
for this trade. If you still wish to continue, you can turn on Degen Mode from Settings
for this trade. If you still wish to continue, you can turn on Degen Mode from Settings.
</Trans>
}
>
Expand Down
8 changes: 4 additions & 4 deletions src/components/SwapForm/SwapModal/SwapDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default function SwapDetails({
<TextDashed fontSize={12} fontWeight={400} color={theme.subText} minWidth="max-content">
<MouseoverTooltip
width="200px"
text={<Trans>You will receive at least this amount or your transaction will revert</Trans>}
text={<Trans>You will receive at least this amount or your transaction will revert.</Trans>}
placement="right"
>
<Trans>Minimum Received</Trans>
Expand Down Expand Up @@ -224,7 +224,7 @@ export default function SwapDetails({
<RowBetween height="20px" style={{ gap: '16px' }}>
<RowFixed>
<TextDashed fontSize={12} fontWeight={400} color={theme.subText}>
<MouseoverTooltip text={<Trans>Estimated network fee for your transaction</Trans>} placement="right">
<MouseoverTooltip text={<Trans>Estimated network fee for your transaction.</Trans>} placement="right">
<Trans>Est. Gas Fee</Trans>
</MouseoverTooltip>
</TextDashed>
Expand Down Expand Up @@ -364,7 +364,7 @@ export default function SwapDetails({
<Divider />
<RowBetween>
<TextDashed fontSize={12} color={theme.subText}>
<MouseoverTooltip text={<Trans>Chain on which the swap will be executed</Trans>}>
<MouseoverTooltip text={<Trans>Chain on which the swap will be executed.</Trans>}>
<Trans>Chain</Trans>
</MouseoverTooltip>
</TextDashed>
Expand All @@ -380,7 +380,7 @@ export default function SwapDetails({
text={
<Trans>
The contract address that will be executing the swap. You can verify the contract in the block
explorer
explorer.
</Trans>
}
>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SwapForm/TradeSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const TradeSummary: React.FC<Props> = ({ routeSummary, slippage }) => {
<TextDashed fontSize={12} fontWeight={400} color={theme.subText}>
<MouseoverTooltip
width="200px"
text={<Trans>You will receive at least this amount or your transaction will revert</Trans>}
text={<Trans>You will receive at least this amount or your transaction will revert.</Trans>}
placement="right"
>
<Trans>Minimum Received</Trans>
Expand All @@ -215,7 +215,7 @@ const TradeSummary: React.FC<Props> = ({ routeSummary, slippage }) => {
<RowBetween>
<RowFixed>
<TextDashed fontSize={12} fontWeight={400} color={theme.subText}>
<MouseoverTooltip text={<Trans>Estimated network fee for your transaction</Trans>} placement="right">
<MouseoverTooltip text={<Trans>Estimated network fee for your transaction.</Trans>} placement="right">
<Trans>Est. Gas Fee</Trans>
</MouseoverTooltip>
</TextDashed>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Vesting/VestingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function VestingCard({
<Flex alignItems="center" color={theme.subText} sx={{ gap: '4px' }}>
<Wallet />
<MouseoverTooltip
text={t`The amount of rewards that are unlocked and can be claimed instantly as their vesting is over`}
text={t`The amount of rewards that are unlocked and can be claimed instantly as their vesting is over.`}
>
<Title>Claimable Rewards</Title>
</MouseoverTooltip>
Expand All @@ -329,7 +329,7 @@ function VestingCard({
<SummaryItem>
<Flex alignItems="center" color={theme.subText} sx={{ gap: '4px' }}>
<Wallet />
<MouseoverTooltip text={t`The amount of rewards that are locked as they are currently vesting`}>
<MouseoverTooltip text={t`The amount of rewards that are locked as they are currently vesting.`}>
<Title>
<Trans>Locked Rewards</Trans>
</Title>
Expand Down
2 changes: 1 addition & 1 deletion src/components/WalletPopup/RewardCenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function RewardCenter() {
>
<Flex width="fit-content" sx={{ gap: '4px' }}>
<MouseoverTooltip
text={t`Total Available Rewards = Total Available Voting Rewards + Total Available Gas Refund`}
text={t`Total Available Rewards = Total Available Voting Rewards + Total Available Gas Refund.`}
>
<BalanceTitle>
<Trans>Total Available Rewards</Trans>
Expand Down
2 changes: 1 addition & 1 deletion src/components/WalletPopup/SendToken/WarningBrave.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const WarningBrave = ({ token }: { token: Currency | undefined }) => {
<NetworkLogo chainId={chainId} style={{ width: 16, height: 16 }} />
{shortenAddress(chainId, token.wrapped.address, 5, false)}
<CopyHelper toCopy={token.wrapped.address} />
<MouseoverTooltipDesktopOnly text={t`Import token in Brave wallet`}>
<MouseoverTooltipDesktopOnly text={t`Import token in Brave wallet.`}>
<AddTokenToMetaMask token={token as Token} />
</MouseoverTooltipDesktopOnly>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion src/components/WalletPopup/Transactions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function ListTransaction({ isMinimal }: { isMinimal: boolean }) {
<Flex flexDirection="column" alignItems="center" color={theme.subText} sx={{ gap: 10, marginTop: '20px' }}>
<Info size={32} />
<Text fontSize={'14px'}>
<Trans>You have no Transaction History</Trans>
<Trans>You have no Transaction History.</Trans>
</Text>
</Flex>
) : (
Expand Down
4 changes: 2 additions & 2 deletions src/components/YieldPools/ElasticFarmGroup/FarmCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const FarmCard = ({
<MouseoverTooltip
text={
<Text fontSize="12px" fontStyle="italic">
<Trans>You have {numberOutRangePos} out-of-range position(s)</Trans>
<Trans>You have {numberOutRangePos} out-of-range position(s).</Trans>
</Text>
}
>
Expand All @@ -148,7 +148,7 @@ const FarmCard = ({
<MouseoverTooltip
text={
<Text fontSize="12px" fontStyle="italic">
<Trans>You have {numberInRangePos} in-range position(s)</Trans>
<Trans>You have {numberInRangePos} in-range position(s).</Trans>
</Text>
}
>
Expand Down
Loading
Loading