add russian translation files

This commit is contained in:
saml33 2022-10-10 14:59:23 +11:00
parent 5f246b1454
commit 6ca6eadbee
14 changed files with 321 additions and 2 deletions

View File

@ -1,6 +1,6 @@
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'es', 'zh', 'zh_tw'],
locales: ['en', 'es', 'ru', 'zh', 'zh_tw'],
},
}

View File

@ -37,6 +37,7 @@ export async function getStaticProps({ locale }: { locale: string }) {
export const LANGS = [
{ locale: 'en', name: 'english', description: 'english' },
{ locale: 'ru', name: 'russian', description: 'russian' },
{ locale: 'es', name: 'spanish', description: 'spanish' },
{
locale: 'zh_tw',
@ -111,7 +112,7 @@ const Settings: NextPage = () => {
</div>
<div className="flex flex-col border-t border-th-bkg-3 py-4 md:flex-row md:items-center md:justify-between md:px-4">
<p className="mb-2 lg:mb-0">{t('settings:language')}</p>
<div className="w-full min-w-[330px] md:w-auto">
<div className="w-full min-w-[330px] md:w-[480px] md:pl-4">
<ButtonGroup
activeValue={savedLanguage}
onChange={(l) => handleLangChange(l)}

View File

@ -12,6 +12,7 @@
"notification-position": "Notification Position",
"orderbook-flash": "Orderbook Flash",
"preferred-explorer": "Preferred Explorer",
"russian": "Русский",
"solana-beach": "Solana Beach",
"solana-explorer": "Solana Explorer",
"solanafm": "SolanaFM",

View File

@ -12,6 +12,7 @@
"notification-position": "Notification Position",
"orderbook-flash": "Orderbook Flash",
"preferred-explorer": "Preferred Explorer",
"russian": "Русский",
"solana-beach": "Solana Beach",
"solana-explorer": "Solana Explorer",
"solanafm": "SolanaFM",

View File

@ -0,0 +1,23 @@
{
"activity": "Activity",
"activity-type": "Activity Type",
"activity-value": "Activity Value",
"advanced-filters": "Advanced Filters",
"asset-liquidated": "Asset Liquidated",
"asset-returned": "Asset Returned",
"credit": "Credit",
"debit": "Debit",
"deposit": "Deposit",
"deposits": "Deposits",
"filter-results": "Filter Results",
"liquidation": "Liquidation",
"liquidations": "Liquidations",
"liquidation-details": "Liquidation Details",
"reset-filters": "Reset Filters",
"select-tokens": "Select Tokens",
"update": "Update",
"value-from": "Value From",
"value-to": "Value To",
"withdraw": "Withdraw",
"withdrawals": "Withdrawals"
}

View File

@ -0,0 +1,103 @@
{
"account": "Account",
"account-closed": "Account Closed 👋",
"account-balance": "Account Balance",
"account-name": "Account Name",
"account-name-desc": "Organize your accounts by giving them useful names",
"account-update-failed": "Failed to update account",
"account-update-success": "Account updated successfully",
"account-value": "Account Value",
"accounts": "Accounts",
"asset-weight": "Asset Weight",
"asset-weight-desc": "The asset weight applies a haircut to the value of the collateral in your account health calculation. The lower the asset weight, the less the asset counts towards collateral.",
"available": "Available",
"available-balance": "Available Balance",
"balance": "Balance",
"balances": "Balances",
"borrow": "Borrow",
"borrow-amount": "Borrow Amount",
"borrow-fee": "Borrow Fee",
"borrow-rate": "Borrow Rate (APR)",
"borrow-value": "Borrow Value",
"buy": "Buy",
"cancel": "Cancel",
"close-account": "Close Account",
"close-account-desc": "Are you sure? Closing your account is irreversible.",
"closing-account": "Closing your account...",
"collateral-value": "Collateral Value",
"connect": "Connect",
"connect-helper": "Connect to get started",
"create-account": "Create Account",
"creating-account": "Creating Account...",
"cumulative-interest-value": "Cumulative Interest Value",
"daily-volume": "24h Volume",
"date": "Date",
"date-from": "Date From",
"date-to": "Date To",
"deposit": "Deposit",
"deposit-rate": "Deposit Rate (APR)",
"deposit-value": "Deposit Value",
"disconnect": "Disconnect",
"edit-account": "Edit Account",
"edit-profile-image": "Edit Profile Image",
"explorer": "Explorer",
"fee": "Fee",
"fees": "Fees",
"free-collateral": "Free Collateral",
"governance": "Governance",
"health": "Health",
"health-impact": "Health Impact",
"insufficient-sol": "Solana requires 0.00757 SOL rent to create a Mango Account. This will be returned if you close your account.",
"interest-earned": "Interest Earned",
"interest-earned-paid": "Interest Earned",
"learn": "Learn",
"leverage": "Leverage",
"liability-weight": "Liability Weight",
"liquidity": "Liquidity",
"market": "Market",
"max": "Max",
"max-borrow": "Max Borrow",
"more": "More",
"new-account": "New Account",
"new-account-failed": "Failed to create account",
"new-account-success": "Your new account is ready 😎",
"pnl": "PnL",
"price": "Price",
"quantity": "Quantity",
"rate": "Rate (APR)",
"rates": "Rates (APR)",
"remove": "Remove",
"rolling-change": "24h Change",
"russian": "Русский",
"save": "Save",
"select-token": "Select Token",
"sell": "Sell",
"settings": "Settings",
"show-zero-balances": "Show Zero Balances",
"spot": "Spot",
"stats": "Stats",
"swap": "Swap",
"time": "Time",
"token": "Token",
"tokens": "Tokens",
"token-collateral-multiplier": "{{token}} Collateral Multiplier",
"total-borrows": "Total Borrows",
"total-borrow-value": "Total Borrow Value",
"total-collateral": "Total Collateral",
"total-deposits": "Total Deposits",
"total-deposit-value": "Total Deposit Value",
"total-interest-earned": "Total Interest Earned",
"trade": "Trade",
"trade-history": "Trade History",
"transaction": "Transaction",
"unavailable": "Unavailable",
"update": "Update",
"updating-account-name": "Updating Account Name...",
"utilization": "Utilization",
"value": "Value",
"wallet-balance": "Wallet Balance",
"wallet-disconnected": "Disconnected from wallet",
"withdraw": "Withdraw",
"withdrawal-value": "Withdrawal Value"
}

View File

@ -0,0 +1,58 @@
{
"account-dashboard": "Your Account Dashboard",
"account-dashboard-desc": "Here you'll find the important information related to your account. Let us show you around. Click close to skip the tour at any time.",
"account-value": "Account Value",
"account-value-desc": "The value of your assets (deposits) minus the value of your liabilities (borrows).",
"free-collateral": "Free Collateral",
"free-collateral-desc": "The amount of capital you have to trade or borrow against. When your free collateral reaches $0 you won't be able to make withdrawals.",
"from-token": "From Token",
"from-token-desc": "Select the token you want to swap from (sell). If you have margin on and your size is above your token balance a loan will be opened to cover the shortfall. Check the borrow rate before making a margin swap.",
"health": "Health",
"health-desc": "If your account health reaches 0% your account will be liquidated. You can increase the health of your account by making a deposit.",
"health-check": "Health Check",
"health-check-desc": "Check the health of your account from any screen in the app. A green heart represents good health, orange okay and red poor.",
"health-impact": "Health Impact",
"health-impact-desc": "Projects the health of your account before you make a swap. The first value is your current account health and the second, your projected account health.",
"interest-earned": "Interest Earned",
"interest-earned-desc": "The sum of interest earned and interest paid for each token.",
"ioc": "Immediate or Cancel (IoC)",
"ioc-desc": "An order condition that attempts to execute all or part of an order immediately and then cancels any unfilled portion.",
"margin": "Margin",
"margin-desc": "When margin is on you can trade with more size than your token balance. Using margin increases your risk of loss. If you're not an experienced trader, use it with caution.",
"market-selector": "Market Selector",
"market-selector-desc": "Chose the market you want to trade.",
"oracle-price": "Oracle Price",
"oracle-price-desc": "The oracle price uses an average of price data from many sources. It's used to avoid price manipulation which could lead to liquidations.",
"orderbook-grouping": "Orderbook Grouping",
"orderbook-grouping-desc": "Adjust the price intervals to change how orders are grouped. Small intervals will show more small orders in the book",
"pnl": "PnL (Profit and Loss)",
"pnl-desc": "The amount your account has made or lost.",
"post-only": "Post Only",
"post-only-desc": "An order condition that will only allow your order to enter the orderbook as a maker order. If the condition can't be met the order will be cancelled.",
"profile-menu": "Profile Menu",
"profile-menu-desc": "If you haven't chosen a profile name yet, you'll see your assigned one here. You can edit it and change your profile picture from this menu.",
"rates": "Rates",
"rates-desc": "The interest rates (per year) for depositing (green/left) and borrowing (red/right).",
"recent-trades": "Recent Trades",
"recent-trades-desc": "Shows the most recent orders for a market across all accounts.",
"spread": "Spread",
"spread-desc": "The difference between the prices quoted for an immediate sell (ask) and an immediate buy (bid). Or, in other words, the difference between the lowest sell price and the highest buy price.",
"swap": "We've Juiced Swap",
"swap-desc": "The swap you know and love + leverage. Swap lets you trade tokens on their relative strength. Let's say your thesis is BTC will see diminishing returns relative to SOL. You can sell BTC and buy SOL. Now you are long SOL/BTC",
"swap-settings": "Swap Settings",
"swap-settings-desc": "Edit your slippage settings and toggle margin on and off. When margin is off your swaps will be limited by your balance for each token.",
"toggle-orderbook": "Toggle Orderbook",
"toggle-orderbook-desc": "Use these buttons if you only want to see one side of the orderbook. Looking to bid/buy? Toggle off the buy orders to only see the sells and vice versa.",
"token-actions": "Token Actions",
"token-actions-desc": "Deposit, withdraw, borrow, buy and sell buttons for each token.",
"to-token": "To Token",
"to-token-desc": "The token you'll receive in your Mango Account after making a swap. You can think of this token as the one you're buying/longing.",
"total-interest-earned": "Total Interest Earned",
"total-interest-earned-desc": "The value of interest earned (deposits) minus interest paid (borrows).",
"trade": "Trade 100s of Tokens...",
"trade-desc": "A refined interface without listing limits. The tokens you want to trade are now on Mango and no longer only quoted in USDC.",
"unsettled-balance": "Unsettled Balance",
"unsettled-balance-desc": "When a limit order is filled, the funds are placed in your unsettled balances. When you have an unsettled balance you'll see a 'Settle All' button above this table. Use it to move the funds to your account balance.",
"your-accounts": "Your Accounts",
"your-accounts-desc": "Switch between accounts and create new ones. Use multiple accounts to trade isolated margin and protect your capital from liquidation."
}

View File

@ -0,0 +1,43 @@
{
"browse-profiles": "瀏覽",
"choose-profile": "選擇頭像",
"connect-view-profile": "連接錢包來查看帳戶",
"day-trader": "日內交易者",
"degen": "Degen",
"discretionary": "零錢",
"edit-profile": "編輯帳戶",
"edit-profile-pic": "切換頭像",
"follow": "追蹤",
"following": "追蹤中",
"invalid-characters": "限制於字母、数字和空格",
"length-error": "Names must be less than 20 characters",
"market-maker": "做市商",
"no-followers": "無追蹤者",
"no-followers-desc": "以隱身模式交易😎",
"no-following": "還沒追蹤別帳戶",
"no-following-desc": "跟朋友團結比較安全吧",
"no-nfts": "😞 未找到NFT...",
"no-profile-exists": "此帳戶不存在...",
"profile": "帳戶",
"profile-fetch-fail": "查帳戶細節出錯",
"profile-name": "帳戶標籤",
"profile-pic-failure": "設置頭像失敗",
"profile-pic-success": "設置頭像成功",
"profile-pic-remove-failure": "刪除頭像失敗",
"profile-pic-remove-success": "刪除頭像成功",
"profile-update-fail": "更新帳戶出錯",
"profile-update-success": "帳戶已更新",
"remove": "刪除",
"save-profile": "保存帳戶",
"set-profile-pic": "設置頭像",
"swing-trader": "擺動交易者",
"total-pnl": "組合總盈虧",
"total-value": "組合總價值",
"trader": "交易者",
"trader-category": "交易模式",
"unfollow": "取消追蹤",
"uniqueness-api-fail": "Failed to check profile name uniqueness",
"uniqueness-fail": "Profile name is taken. Try another one",
"yolo": "YOLO",
"your-profile": "您的帳戶"
}

View File

@ -0,0 +1,23 @@
{
"bottom-left": "Bottom-Left",
"bottom-right": "Bottom-Right",
"chinese": "简体中文",
"chinese-traditional": "繁體中文",
"dark": "Dark",
"display": "Display",
"english": "English",
"language": "Language",
"light": "Light",
"mango": "Mango",
"notification-position": "Notification Position",
"orderbook-flash": "Orderbook Flash",
"preferred-explorer": "Preferred Explorer",
"solana-beach": "Solana Beach",
"solana-explorer": "Solana Explorer",
"solanafm": "SolanaFM",
"solscan": "Solscan",
"spanish": "Español",
"theme": "Theme",
"top-left": "Top-Left",
"top-right": "Top-Right"
}

View File

@ -0,0 +1,16 @@
{
"confirm-swap": "Confirm Swap",
"est-liq-price": "Est. Liq Price",
"fees-paid-to": "Fees Paid to {{route}}",
"from": "From",
"health-impact": "Health Impact",
"insufficient-balance": "Insufficient {{symbol}} Balance",
"insufficient-collateral": "Insufficient Collateral",
"minimum-received": "Minimum Received",
"rate": "Rate",
"review-swap": "Review Swap",
"slippage": "Slippage",
"swap-history": "Swap History",
"to": "To",
"use-margin": "Allow Margin"
}

View File

@ -0,0 +1,35 @@
{
"amount": "Amount",
"base": "Base Token",
"book": "Book",
"cancel-order-error": "Failed to cancel order",
"connect-orders": "Connect to view your open orders",
"connect-unsettled": "Connect to view your unsettled trades",
"grouping": "Grouping",
"hide-asks": "Hide Asks",
"hide-bids": "Hide Bids",
"in-orders": "In Orders",
"limit-price": "Limit Price",
"margin": "Margin",
"no-orders": "No open orders...",
"no-unsettled": "No unsettled funds...",
"oracle-price": "Oracle Price",
"orders": "Orders",
"order-error": "Failed to place order",
"post": "Post",
"place-order": "Place {{side}} Order",
"placing-order": "Placing Order",
"quote": "Quote Token",
"settle-funds": "Settle Funds",
"settle-funds-error": "Failed to settle funds",
"show-asks": "Show Asks",
"show-bids": "Show Bids",
"side": "Side",
"size": "Size",
"spread": "Spread",
"tooltip-enable-margin": "Enable spot margin for this trade",
"tooltip-ioc": "Immediate or cancel orders are guaranteed to be the taker or they will be canceled.",
"tooltip-post": "Post orders are guaranteed to be the maker order or else they will be canceled.",
"trades": "Trades",
"unsettled": "Unsettled"
}

View File

@ -0,0 +1,13 @@
{
"advanced-order": "高級訂單類型",
"advanced-order-details": "在圖表窗口中高級訂單類型只能取消。如果需要新條件,請取消此訂單並使用高級交易表格進行。",
"cancel-order": "取消訂單嗎?",
"cancel-order-details": "您確定要取消{{orderSize}} {{baseSymbol}} {{orderSide}} 價格${{orderPrice}}的掛單嗎?",
"modify-order": "改您的訂單嗎?",
"modify-order-details": "您確定要把{{orderSize}} {{baseSymbol}}{{orderSide}} 價格${{currentOrderPrice}}的掛單改成{{orderSize}} {{baseSymbol}}限價{{orderSide}} 價格${{updatedOrderPrice}}嗎?",
"order-details": "({{orderType}}{{orderSide}})若價格{{triggerCondition}}{{triggerPrice}}",
"outside-range": "訂單價格在範圍之外",
"slippage-accept": "若您接受潛在的下滑請使用交易表格進行。",
"slippage-warning": "您的訂單價格({{updatedOrderPrice}})多餘5%{{aboveBelow}}市場價格({{selectedMarketPrice}})表是您也許遭受可觀的下滑。",
"toggle-order-line": "切換訂單線可見性"
}

View File

@ -12,6 +12,7 @@
"notification-position": "Notification Position",
"orderbook-flash": "Orderbook Flash",
"preferred-explorer": "Preferred Explorer",
"russian": "Русский",
"solana-beach": "Solana Beach",
"solana-explorer": "Solana Explorer",
"solanafm": "SolanaFM",

View File

@ -12,6 +12,7 @@
"notification-position": "Notification Position",
"orderbook-flash": "Orderbook Flash",
"preferred-explorer": "Preferred Explorer",
"russian": "Русский",
"solana-beach": "Solana Beach",
"solana-explorer": "Solana Explorer",
"solanafm": "SolanaFM",