From 856c2d5a5b5afc5b96bd8b13c8260ed1fe3f2b3f Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 6 May 2026 16:45:59 +0200 Subject: [PATCH 1/3] improve(i18n): localize hq upgrade calculator --- src/locales/en_US/hq_upgrade_calculator.json | 25 ++++++ src/locales/en_US/terms.json | 91 ++++++++++---------- src/views/tools/HQUpgradeCalculatorView.vue | 73 ++++++++++++---- 3 files changed, 127 insertions(+), 62 deletions(-) create mode 100644 src/locales/en_US/hq_upgrade_calculator.json diff --git a/src/locales/en_US/hq_upgrade_calculator.json b/src/locales/en_US/hq_upgrade_calculator.json new file mode 100644 index 00000000..542176e9 --- /dev/null +++ b/src/locales/en_US/hq_upgrade_calculator.json @@ -0,0 +1,25 @@ +{ + "view_title": "HQ", + "title": "HQ Upgrade Calculator", + "form": { + "from_level": "From HQ Level", + "to_level": "To HQ Level", + "cx_preference": "@:terms.cx Preference", + "show_locations": "Show Locations" + }, + "cost": { + "total_cost": "Total @:terms.cost", + "total_weight": "Total @:terms.weight", + "total_volume": "Total @:terms.volume" + }, + "table": { + "material": "@:terms.materials", + "amount": "@:terms.amount", + "storage": "@:terms.storage", + "override_stock": "Override Stock", + "required": "Required", + "cost_unit": "Cost / Unit", + "cost_total": "Total Cost", + "storage_locations": "@:terms.storage Locations" + } +} diff --git a/src/locales/en_US/terms.json b/src/locales/en_US/terms.json index 9def0bb8..b7ead843 100644 --- a/src/locales/en_US/terms.json +++ b/src/locales/en_US/terms.json @@ -1,55 +1,58 @@ { - "plan": "Plan | Plans", - "plans_plural": "Plans", - "empire": "Empire | Empires", - "cx": "CX | CXs", - "cx_plural": "CXs", - "planets": "Planet | Planets", - "planet_plural": "Planets", - "faction": "Faction", + "30d": "30D", + "7d": "7D", + "api_key": "API Key", + "ask": "Ask", + "bid": "Bid", + "buffer": "Buffer", + "buildings": "Building | Buildings", "cogc": "COGC", - "permits": "Permit | Permits", - "permits_plural": "Permits", - "profit": "Profit", - "revenue": "Revenue", - "exchanges": "Exchange | Exchanges", - "resources": "Resource | Resources", - "resources_plural": "Resources", + "cogm": "COGM", + "consumption": "Consumption", "cost": "Cost", - "profit_per_area": "Profit / Area", - "hq": "HQ", - "buffer": "Buffer", - "material_ticker": "Ticker", - "delta": "Delta", + "cx_plural": "CXs", + "cx": "CX | CXs", "delta_price": "ȼ Delta", - "production": "Production", - "consumption": "Consumption", - "materials": "Material | Materials", - "buildings": "Building | Buildings", - "recipes": "Recipe | Recipes", - "materials_plural": "Materials", - "surface": "Surface", + "delta": "Delta", + "demand": "Demand", + "empire": "Empire | Empires", + "exchanges": "Exchange | Exchanges", + "faction": "Faction", + "fertility": "Fertility", + "filter": "Filter", + "fio": "FIO", + "gaseous": "Gaseous", "gravity": "Gravity", - "temperature": "Temperature", - "pressure": "Pressure", "high": "High", + "hq": "HQ", "low": "Low", - "rocky": "Rocky", - "gaseous": "Gaseous", - "fertility": "Fertility", + "material_ticker": "Ticker", + "materials_plural": "Materials", + "materials": "Material | Materials", + "permits_plural": "Permits", + "permits": "Permit | Permits", + "plan": "Plan | Plans", + "planet_plural": "Planets", + "planets": "Planet | Planets", + "plans_plural": "Plans", "popr": "POPR", - "fio": "FIO", - "api_key": "API Key", + "pressure": "Pressure", + "production": "Production", + "profit_per_area": "Profit / Area", + "profit": "Profit", + "recipes": "Recipe | Recipes", + "resources_plural": "Resources", + "resources": "Resource | Resources", + "revenue": "Revenue", + "rocky": "Rocky", + "spread": "Spread", "supply": "Supply", - "demand": "Demand", - "vwap": "VWAP", - "volume": "Volume", - "7d": "7D", - "30d": "30D", + "surface": "Surface", + "temperature": "Temperature", "trend": "Trend", - "ask": "Ask", - "bid": "Bid", - "spread": "Spread", - "filter": "Filter", - "cogm": "COGM" + "volume": "Volume", + "vwap": "VWAP", + "weight": "Weight", + "amount": "Amount", + "storage": "Storage" } diff --git a/src/views/tools/HQUpgradeCalculatorView.vue b/src/views/tools/HQUpgradeCalculatorView.vue index 8a431d4a..65f3a14c 100644 --- a/src/views/tools/HQUpgradeCalculatorView.vue +++ b/src/views/tools/HQUpgradeCalculatorView.vue @@ -1,9 +1,12 @@