From cebb36a76fc6a60a4dad2a30731be52e99ecfa03 Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 20 May 2024 13:30:08 +0200 Subject: [PATCH] Clarify Wording about liftable weight --- src/lib/constants.ts | 6 +++--- src/routes/+page.svelte | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 3d35a9d..11158c6 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -127,9 +127,9 @@ export const localization = new Map([ ["en-GB", "Liftable Weight"], ["de-DE", "Liftkapazität"] ])], - ["liftableCargoWeight", new Map([ - ["en-GB", "Liftable Cargo Weight"], - ["de-DE", "Fracht Liftkapazität"] + ["liftableVehcileWeight", new Map([ + ["en-GB", "Liftable Vehicle Weight"], + ["de-DE", "Liftbares Fahrzeuggewicht"] ])], ["thrust", new Map([ ["en-GB", "Thrust"], diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e4ab9b7..f16ce2b 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -88,7 +88,7 @@ let maxWeight = $derived(totalThrust / (gravity * 9.81)) - let maxCargoWeight = $derived(maxWeight - totalVolume * weightPerVolume) + let maxVehicleWeight = $derived(maxWeight - totalVolume * weightPerVolume) function weightConversion(weight: number): string { if (weight > 1000) { @@ -215,7 +215,7 @@ {/each} -

{localized("liftableCargoWeight")}: {weightConversion(maxCargoWeight)}

+

{localized("liftableVehcileWeight")}: {weightConversion(maxVehicleWeight)}

{localized("liftableWeight")}: {weightConversion(maxWeight)}