From ebddebaf8153671d2cf1ac1a5f43a538da83e6b1 Mon Sep 17 00:00:00 2001 From: rjpeterson Date: Wed, 19 Jan 2022 11:29:02 -0600 Subject: [PATCH] add zh-tw calculator phrases --- pages/risk-calculator.tsx | 8 ++--- public/locales/en/calculator.json | 4 ++- public/locales/es/calculator.json | 4 ++- public/locales/zh/calculator.json | 4 ++- public/locales/zh_tw/calculator.json | 54 ++++++++++++++-------------- 5 files changed, 41 insertions(+), 33 deletions(-) diff --git a/pages/risk-calculator.tsx b/pages/risk-calculator.tsx index fec80a0a..38f5e5bd 100644 --- a/pages/risk-calculator.tsx +++ b/pages/risk-calculator.tsx @@ -1467,8 +1467,8 @@ export default function RiskCalculator() { }`} > {scenarioDetails.get('initHealth') * 100 >= 0 - ? 'Yes' - : 'No'} + ? t('calculator:yes') + : t('calculator:no')}
@@ -2069,8 +2069,8 @@ export default function RiskCalculator() { }`} > {scenarioDetails.get('initHealth') * 100 >= 0 - ? 'Yes' - : 'No'} + ? t('calculator:yes') + : t('calculator:no')}
diff --git a/public/locales/en/calculator.json b/public/locales/en/calculator.json index 8a55ba35..8c105dd7 100644 --- a/public/locales/en/calculator.json +++ b/public/locales/en/calculator.json @@ -24,6 +24,7 @@ "maint-weighted-liabilities": "Maint. Weighted Liabilities Value", "maintenance-health": "Maintenance Health", "new-positions-openable": "New Positions Can Be Opened", + "no": "No", "ok": "OK", "percent-move-liquidation": "Percent Move To Liquidation", "perp-entry": "Perp Entry", @@ -39,5 +40,6 @@ "tooltip-anchor-slider": "Set current pricing to be the anchor point (0%) for slider", "tooltip-init-health": "Initial health must be above 0% to open new positions.", "tooltip-maint-health": "Maintenance health must be above 0% to avoid liquidation.", - "very-poor": "Very Poor" + "very-poor": "Very Poor", + "yes": "Yes" } \ No newline at end of file diff --git a/public/locales/es/calculator.json b/public/locales/es/calculator.json index 8a55ba35..8c105dd7 100644 --- a/public/locales/es/calculator.json +++ b/public/locales/es/calculator.json @@ -24,6 +24,7 @@ "maint-weighted-liabilities": "Maint. Weighted Liabilities Value", "maintenance-health": "Maintenance Health", "new-positions-openable": "New Positions Can Be Opened", + "no": "No", "ok": "OK", "percent-move-liquidation": "Percent Move To Liquidation", "perp-entry": "Perp Entry", @@ -39,5 +40,6 @@ "tooltip-anchor-slider": "Set current pricing to be the anchor point (0%) for slider", "tooltip-init-health": "Initial health must be above 0% to open new positions.", "tooltip-maint-health": "Maintenance health must be above 0% to avoid liquidation.", - "very-poor": "Very Poor" + "very-poor": "Very Poor", + "yes": "Yes" } \ No newline at end of file diff --git a/public/locales/zh/calculator.json b/public/locales/zh/calculator.json index 8a55ba35..8c105dd7 100644 --- a/public/locales/zh/calculator.json +++ b/public/locales/zh/calculator.json @@ -24,6 +24,7 @@ "maint-weighted-liabilities": "Maint. Weighted Liabilities Value", "maintenance-health": "Maintenance Health", "new-positions-openable": "New Positions Can Be Opened", + "no": "No", "ok": "OK", "percent-move-liquidation": "Percent Move To Liquidation", "perp-entry": "Perp Entry", @@ -39,5 +40,6 @@ "tooltip-anchor-slider": "Set current pricing to be the anchor point (0%) for slider", "tooltip-init-health": "Initial health must be above 0% to open new positions.", "tooltip-maint-health": "Maintenance health must be above 0% to avoid liquidation.", - "very-poor": "Very Poor" + "very-poor": "Very Poor", + "yes": "Yes" } \ No newline at end of file diff --git a/public/locales/zh_tw/calculator.json b/public/locales/zh_tw/calculator.json index 8a55ba35..1879ae8a 100644 --- a/public/locales/zh_tw/calculator.json +++ b/public/locales/zh_tw/calculator.json @@ -1,10 +1,10 @@ { - "anchor-slider": "Anchor slider", - "edit-all-prices": "Edit All Prices", - "great": "Great", - "init-weighted-assets": "Init. Weighted Assets Value", - "init-weighted-liabilities": "Init. Weighted Liabilities Value", - "initial-health": "Initial Health", + "anchor-slider": "定滑快", + "edit-all-prices": "調整所有價格", + "great": "很好", + "init-weighted-assets": "初始加權資產價值", + "init-weighted-liabilities": "初始加權借貸價值", + "initial-health": "初始健康度", "joke-get-party-started": "Let's get this party started", "joke-hit-em-with": "Hit 'em with everything you've got...", "joke-insert-coin": "Insert coin to continue...", @@ -19,25 +19,27 @@ "joke-sun-shining": "The sun is shining and the mangoes are ripe...", "joke-throw-some-money": "Throw some money at them to make them go away...", "joke-zero-borrows-risk": "0 Borrows = 0 Risk", - "liq-price": "Liq. Price", - "maint-weighted-assets": "Maint. Weighted Assets Value", - "maint-weighted-liabilities": "Maint. Weighted Liabilities Value", - "maintenance-health": "Maintenance Health", - "new-positions-openable": "New Positions Can Be Opened", + "liq-price": "清算價格", + "maint-weighted-assets": "維持加權資產價值", + "maint-weighted-liabilities": "維持加權借貸價值", + "maintenance-health": "維持健康度", + "new-positions-openable": "可擴大當前持倉", + "no": "不行", "ok": "OK", - "percent-move-liquidation": "Percent Move To Liquidation", - "perp-entry": "Perp Entry", - "poor": "Poor", - "rekt": "Rekt", - "risk-calculator": "Risk Calculator", - "scenario-balances": "Scenario Balances", - "scenario-details": "Scenario Details", - "scenario-maint-health": "Scenario Maintenance Health:", - "simulate-orders-cancelled": "Simulate orders cancelled", - "single-asset-liq": "Single asset liquidation price assuming all other asset prices remain constant", - "spot-val-perp-val": "Spot Value + Perp Balance", - "tooltip-anchor-slider": "Set current pricing to be the anchor point (0%) for slider", - "tooltip-init-health": "Initial health must be above 0% to open new positions.", - "tooltip-maint-health": "Maintenance health must be above 0% to avoid liquidation.", - "very-poor": "Very Poor" + "percent-move-liquidation": "多大漲落導致清算", + "perp-entry": "永續合約入點", + "poor": "不好", + "rekt": "糟糕了", + "risk-calculator": "風險計算器", + "scenario-balances": "模擬餘額", + "scenario-details": "模擬細節", + "scenario-maint-health": "模擬維持健康度:", + "simulate-orders-cancelled": "架設取消掛單", + "single-asset-liq": "單個資產虛擬清算價格會假設所有其他資產價格不變", + "spot-val-perp-val": "現貨價直+合約餘額", + "tooltip-anchor-slider": "將目前資產價格定為滑快起點(0%)", + "tooltip-init-health": "為了擴大當前持倉,初始健康度必須高於0%。", + "tooltip-maint-health": "為了避免清算,維持健康度必須高於0%。", + "very-poor": "很不好", + "yes": "行" } \ No newline at end of file