update translations

This commit is contained in:
rjpeterson 2022-03-13 18:25:15 -05:00
parent 0a234a94f5
commit d8636f3848
13 changed files with 65 additions and 39 deletions

View File

@ -172,7 +172,7 @@ const CloseAccountModal: FunctionComponent<CloseAccountModalProps> = ({
{!mngoAccrued.isZero() ? (
<div className="flex items-center text-th-fgd-2">
<CheckCircleIcon className="mr-1.5 h-4 w-4 text-th-green" />
{t('close-account:claim-x-mngo', {
{t('close-account:claim-x-mngo-rewards', {
amount: mangoGroup
? nativeToUi(
mngoAccrued.toNumber(),

View File

@ -87,7 +87,7 @@ const PositionsTable = () => {
className="h-8 whitespace-nowrap pt-0 pb-0 pl-3 pr-3 text-xs"
onClick={handleSettleAll}
>
{settling ? <Loading /> : 'Redeem All'}
{settling ? <Loading /> : t('redeem-all')}
</Button>
</div>
<div className="grid grid-flow-row grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3">

View File

@ -204,7 +204,7 @@ export default function AccountHistory() {
) : (
<div className={`flex items-center`}>
<SaveIcon className={`mr-1.5 h-4 w-4`} />
Export PnL CSV
{t('export-pnl-csv')}
</div>
)}
</Button>
@ -479,7 +479,7 @@ const LiquidationHistoryTable = ({ history, view }) => {
</>
) : (
<div className="w-full rounded-md bg-th-bkg-1 py-6 text-center text-th-fgd-3">
History empty
{t('history-empty')}
</div>
)}
</>

View File

@ -140,10 +140,10 @@ const PerformanceChart = ({
return t('pnl')
}
if (!showSpotPnl) {
return `${t('perp')} PnL`
return `${t('perp')} ${t('pnl')}`
}
if (!showPerpPnl) {
return `${t('spot')} PnL`
return `${t('spot')} ${t('pnl')}`
}
}
@ -247,7 +247,7 @@ const PerformanceChart = ({
activeValue={chartToShow}
className="pb-2 pt-2 text-sm"
onChange={(v) => setChartToShow(v)}
values={[t('value'), 'PnL']}
values={[t('value'), t('pnl')]}
/>
</div>

View File

@ -290,13 +290,15 @@ export default function Account() {
<div className="flex items-center whitespace-nowrap">
<GiftIcon className="mr-1.5 h-4 w-4 flex-shrink-0" />
{!mngoAccrued.eq(ZERO_BN)
? `Claim ${nativeToUi(
mngoAccrued.toNumber(),
mangoGroup.tokens[MNGO_INDEX].decimals
).toLocaleString(undefined, {
minimumSignificantDigits: 1,
})} MNGO`
: '0 MNGO Rewards'}
? t('claim-x-mngo', {
amount: nativeToUi(
mngoAccrued.toNumber(),
mangoGroup.tokens[MNGO_INDEX].decimals
).toLocaleString(undefined, {
minimumSignificantDigits: 1,
}),
})
: t('zero-mngo-rewards')}
</div>
</button>
<Menu>
@ -306,7 +308,7 @@ export default function Account() {
id="profile-menu-tip"
>
<Menu.Button className="flex h-8 w-full items-center justify-center rounded-full bg-th-bkg-button pt-0 pb-0 pl-3 pr-2 text-xs font-bold hover:brightness-[1.1] hover:filter sm:w-auto">
More
{t('more')}
<ChevronDownIcon
className={`default-transition h-5 w-5 ${
open
@ -358,7 +360,7 @@ export default function Account() {
>
<div className="flex items-center">
<SwitchHorizontalIcon className="mr-1.5 h-4 w-4" />
{t('switch-account')}
{t('change-account')}
</div>
</button>
</Menu.Item>

View File

@ -1,7 +1,7 @@
{
"are-you-sure": "Are you sure?",
"before-you-continue": "Before you can continue",
"claim-x-mngo": "Claim {{amount}} MNGO rewards",
"claim-x-mngo-rewards": "Claim {{amount}} MNGO rewards",
"close-account": "Close Account",
"close-all-borrows": "Close all borrows",
"close-open-orders": "Close all open orders",

View File

@ -61,6 +61,7 @@
"chinese-traditional": "繁體中文",
"claim": "Claim",
"claim-reward": "Claim Reward",
"claim-x-mngo": "Claim {{amount}} MNGO",
"close": "Close",
"close-and-long": "Close position and open long",
"close-and-short": "Close position and open short",
@ -133,6 +134,7 @@
"export-data": "Export CSV",
"export-data-empty": "No data to export",
"export-data-success": "CSV exported successfully",
"export-pnl-csv": "Export PnL CSV",
"favorite": "Favorite",
"favorites": "Favorites",
"fee": "Fee",
@ -293,6 +295,7 @@
"read-more": "Read More",
"recent": "Recent",
"recent-trades": "Recent Trades",
"redeem-all": "Redeem All",
"redeem-failure": "Error redeeming MNGO",
"redeem-pnl": "Redeem",
"redeem-success": "Successfully redeemed MNGO",
@ -304,8 +307,8 @@
"repay-full": "100% repay borrow",
"repay-partial": "Repay {{percentage}}% of borrow",
"reposition": "Drag to reposition",
"rolling-change" : "24hr Change",
"reset": "Reset",
"rolling-change": "24hr Change",
"rpc-endpoint": "RPC Endpoint",
"save": "Save",
"save-name": "Save Name",
@ -342,7 +345,6 @@
"summary": "Summary",
"supported-assets": "Please fund wallet with one of the supported assets.",
"swap": "Swap",
"switch-account": "Switch Account",
"take-profit": "Take Profit",
"take-profit-limit": "Take Profit Limit",
"taker": "Taker",
@ -423,5 +425,6 @@
"you-must-leave-enough-sol": "You must leave enough SOL in your wallet to pay for the transaction",
"your-account": "Your Account",
"your-assets": "Your Assets",
"your-borrows": "Your Borrows"
}
"your-borrows": "Your Borrows",
"zero-mngo-rewards": "0 MNGO Rewards"
}

View File

@ -1,7 +1,7 @@
{
"are-you-sure": "Are you sure?",
"before-you-continue": "Before you can continue",
"claim-x-mngo": "Claim {{amount}} MNGO rewards",
"claim-x-mngo-rewards": "Claim {{amount}} MNGO rewards",
"close-account": "Close Account",
"close-all-borrows": "Close all borrows",
"close-open-orders": "Close all open orders",

View File

@ -60,6 +60,7 @@
"chinese-traditional": "繁體中文",
"claim": "Reclamar",
"claim-reward": "Reclamar recompensa",
"claim-x-mngo": "Claim {{amount}} MNGO",
"close": "Cerrar",
"close-and-long": "Posición cerrada + Empezar a comprar",
"close-and-short": "Posición cerrada + Empezar a vender",
@ -131,6 +132,7 @@
"export-data": "Exportar a CSV",
"export-data-empty": "No hay datos para exportar",
"export-data-success": "CSV exportado con éxito",
"export-pnl-csv": "Export PnL CSV",
"favorite": "Favorito",
"favorites": "Favoritos",
"fee": "Tarifa",
@ -266,6 +268,7 @@
"perp-positions-tip-title": "Detalles de la posición de perp",
"perpetual-futures": "Futuros perpetuos",
"perps": "perpetuos",
"pnl": "PnL",
"pnl-error": "Solución de errores PNL",
"pnl-help": "La liquidación actualizará su saldo en USDC para reflejar el monto de PnL pendiente.",
"pnl-success": "PNL resuelto con éxito",
@ -288,6 +291,7 @@
"read-more": "Leer más",
"recent": "Reciente",
"recent-trades": "Operaciones recientes",
"redeem-all": "Redeem All",
"redeem-failure": "Error al canjear MNGO",
"redeem-pnl": "Resolver",
"redeem-success": "MNGO canjeado con éxito",
@ -335,7 +339,6 @@
"successfully-placed": "Comercio colocado con éxito",
"supported-assets": "Financie la billetera con uno de los activos admitidos.",
"swap": "Intercambio",
"switch-account": "Switch Account",
"take-profit": "Tomar ganancias",
"take-profit-limit": "Tomar el límite de ganancias",
"taker": "Receptor",
@ -344,6 +347,7 @@
"themes-tip-desc": "Mango, Oscuro o Claro (si te gusta eso).",
"themes-tip-title": "Temas de color",
"time": "Tiempo",
"timeframe-desc": "Last {{timeframe}}",
"token": "Simbólico",
"too-large": "Tamaño demasiado grande",
"tooltip-account-liquidated": "La cuenta se liquidará si la relación de salud alcanza el 0% y continuará hasta que la salud inicial sea superior a 0.",
@ -415,5 +419,8 @@
"you-must-leave-enough-sol": "You must leave enough SOL in your wallet to pay for the transaction",
"your-account": "Su cuenta",
"your-assets": "Sus activos",
"your-borrows": "Sus préstamos"
}
"your-borrows": "Sus préstamos",
"zero-mngo-rewards": "0 MNGO Rewards",
"summary": "Summary",
"delayed-info": "Data updates hourly"
}

View File

@ -1,7 +1,7 @@
{
"are-you-sure": "您确定吗?",
"before-you-continue": "进行之前",
"claim-x-mngo": "收获{{amount}}MNGO奖励",
"claim-x-mngo-rewards": "收获{{amount}}MNGO奖励",
"close-account": "关闭帐户",
"close-all-borrows": "归还所有借贷",
"close-open-orders": "取消所有挂单",

View File

@ -60,6 +60,7 @@
"chinese-traditional": "繁體中文",
"claim": "收获",
"claim-reward": "收获奖励",
"claim-x-mngo": "收获{{amount}}MNGO",
"close": "关",
"close-and-long": "平仓和做多",
"close-and-short": "平仓和做空",
@ -131,13 +132,14 @@
"export-data": "导出CSV",
"export-data-empty": "无资料可导出",
"export-data-success": "CSV导出成功",
"export-pnl-csv": "导出盈亏CSV",
"favorite": "喜爱",
"favorites": "喜爱",
"fee": "费率",
"fee-discount": "费率折扣",
"first-deposit-desc": "创建Mango帐户最少需要0.035 SOL。",
"funding": "资金费",
"funding-chart-title": "资金费",
"funding-chart-title": "资金费 前30天(图表有点延迟)",
"get-started": "开始",
"health": "健康度",
"health-check": "帐户健康检查",
@ -159,8 +161,8 @@
"insufficient-balance-withdraw": "帐户余额不够。您得以借贷而前往",
"insufficient-sol": "创建Mango帐户最少需要0.035 SOL。",
"interest": "利息",
"interest-chart-title": "{{symbol}} 利息",
"interest-chart-value-title": "{{symbol}} 利息价值",
"interest-chart-title": "{{symbol}}利息 前30天 (图表有点延迟)",
"interest-chart-value-title": "{{symbol}} 利息价值 前30天 (图表有点延迟)",
"interest-earned": "存借利息",
"interest-info": "您的存款会持续赚取利息。",
"intro-feature-1": "交叉质押的杠杆交易",
@ -266,6 +268,7 @@
"perp-positions-tip-title": "永续合约当前持仓细节",
"perpetual-futures": "永续合约",
"perps": "永续合约",
"pnl": "盈亏",
"pnl-error": "结清盈亏出错了",
"pnl-help": "结清会更新USDC余额来处理尚未结清的盈亏量。",
"pnl-success": "已结清盈亏",
@ -288,6 +291,7 @@
"read-more": "看更多资料",
"recent": "最近",
"recent-trades": "最近成交",
"redeem-all": "现实所有盈亏",
"redeem-failure": "收获MNGO奖励出错了",
"redeem-pnl": "结清",
"redeem-success": "已收获MNGO奖励了",
@ -325,8 +329,8 @@
"size": "数量",
"slippage-warning": "此订单也许会遭受大量滑点!使用限价止损或限价止盈可能比较适合。",
"spanish": "Español",
"spot-desc": "现货市场以USDC报价",
"spot": "现货",
"spot-desc": "现货市场以USDC报价",
"spread": "点差",
"stats": "统计",
"stop-limit": "限价止损",
@ -335,7 +339,6 @@
"successfully-placed": "已下单了",
"supported-assets": "请给钱包存入已被支持的币种。",
"swap": "换币",
"switch-account": "Switch Account",
"take-profit": "止盈",
"take-profit-limit": "限价止盈",
"taker": "吃单者",
@ -344,6 +347,7 @@
"themes-tip-desc": "Mango黑暗或明亮看您偏向。",
"themes-tip-title": "颜色模式",
"time": "时间",
"timeframe-desc": "前{{timeframe}}",
"token": "币种",
"too-large": "数量太大",
"tooltip-account-liquidated": "若帐户健康度降到0%您的帐户会被清算直到初始健康度达到0以上了。",
@ -415,5 +419,8 @@
"you-must-leave-enough-sol": "您必须在钱包中保留足够的 SOL 来支付交易费用",
"your-account": "您的帐户",
"your-assets": "您的资产",
"your-borrows": "您的借入"
"your-borrows": "您的借入",
"zero-mngo-rewards": "0 MNGO奖励",
"summary": "摘要",
"delayed-info": "资料每小时更新"
}

View File

@ -1,7 +1,7 @@
{
"are-you-sure": "您確定嗎?",
"before-you-continue": "進行之前",
"claim-x-mngo": "收穫{{amount}}MNGO獎勵",
"claim-x-mngo-rewards": "收穫{{amount}}MNGO獎勵",
"close-account": "關閉帳戶",
"close-all-borrows": "歸還所有借貸",
"close-open-orders": "取消所有掛單",

View File

@ -60,6 +60,7 @@
"chinese-traditional": "繁體中文",
"claim": "收穫",
"claim-reward": "收穫獎勵",
"claim-x-mngo": "收穫{{amount}}MNGO",
"close": "關",
"close-and-long": "平倉和做多",
"close-and-short": "平倉和做空",
@ -131,13 +132,14 @@
"export-data": "導出CSV",
"export-data-empty": "無資料可導出",
"export-data-success": "CSV導出成功",
"export-pnl-csv": "導出盈虧CSV",
"favorite": "喜愛",
"favorites": "喜愛",
"fee": "費率",
"fee-discount": "費率折扣",
"first-deposit-desc": "創建Mango帳戶最少需要0.035 SOL。",
"funding": "資金費",
"funding-chart-title": "資金費",
"funding-chart-title": "資金費 前30天(圖表有點延遲)",
"get-started": "開始",
"health": "健康度",
"health-check": "帳戶健康檢查",
@ -159,8 +161,8 @@
"insufficient-balance-withdraw": "帳戶餘額不夠。您得以借貸而前往",
"insufficient-sol": "創建Mango帳戶最少需要0.035 SOL。",
"interest": "利息",
"interest-chart-title": "{{symbol}} 利息",
"interest-chart-value-title": "{{symbol}} 利息價值",
"interest-chart-title": "{{symbol}}利息 前30天 (圖表有點延遲)",
"interest-chart-value-title": "{{symbol}} 利息價值 前30天 (圖表有點延遲)",
"interest-earned": "存借利息",
"interest-info": "您的存款會持續賺取利息。",
"intro-feature-1": "交叉質押的槓桿交易",
@ -266,6 +268,7 @@
"perp-positions-tip-title": "永續合約當前持倉細節",
"perpetual-futures": "永續合約",
"perps": "永續合約",
"pnl": "盈虧",
"pnl-error": "實現盈虧出錯了",
"pnl-help": "實現會更新USDC餘額來處理尚未實現的盈虧。",
"pnl-success": "實現盈虧成功",
@ -288,6 +291,7 @@
"read-more": "看更多資料",
"recent": "最近",
"recent-trades": "最近成交",
"redeem-all": "現實所有盈虧",
"redeem-failure": "收穫MNGO獎勵出錯了",
"redeem-pnl": "實現盈虧",
"redeem-success": "已收穫MNGO獎勵了",
@ -325,8 +329,8 @@
"size": "數量",
"slippage-warning": "此訂單也許會遭受大量滑點!使用限價止損或限價止盈可能比較適合。",
"spanish": "Español",
"spot-desc": "現貨市場以USDC報價",
"spot": "現貨",
"spot-desc": "現貨市場以USDC報價",
"spread": "點差",
"stats": "統計",
"stop-limit": "限價止損",
@ -335,7 +339,6 @@
"successfully-placed": "已下單了",
"supported-assets": "請給錢包存入已被支持的幣種。",
"swap": "換幣",
"switch-account": "Switch Account",
"take-profit": "止盈",
"take-profit-limit": "限價止盈",
"taker": "吃單者",
@ -344,6 +347,7 @@
"themes-tip-desc": "Mango黑暗或明亮看您偏向。",
"themes-tip-title": "顏色模式",
"time": "時間",
"timeframe-desc": "前{{timeframe}}",
"token": "幣種",
"too-large": "數量太大",
"tooltip-account-liquidated": "若帳戶健康度降到0%您的帳戶會被清算直到初始健康度達到0以上了。",
@ -415,5 +419,8 @@
"you-must-leave-enough-sol": "您必須在錢包中保留足夠的 SOL 來支付交易費用",
"your-account": "您的帳戶",
"your-assets": "您的資產",
"your-borrows": "您的借入"
"your-borrows": "您的借入",
"zero-mngo-rewards": "0 MNGO獎勵",
"summary": "摘要",
"delayed-info": "資料每小時更新"
}