finishes translation

This commit is contained in:
Christian Beutel
2024-11-05 01:23:06 +01:00
parent 87eb879c7f
commit 81d309c582
9 changed files with 28 additions and 18 deletions

View File

@@ -123,7 +123,8 @@
if (!date) {
return;
}
console.log(date);
dispatch("click", date);
}
</script>

View File

@@ -114,7 +114,7 @@
>
<span
><i class="fa fa-clock mr-2"></i>{formatTimeHHMM(
log.duration,
log.duration ? log.duration / 60 : undefined,
)}</span
>
<span

View File

@@ -55,7 +55,7 @@
const totals = gpxObject.getTotals();
$form.duration = totals.duration / 1000 / 60;
$form.duration = totals.duration / 1000;
$form.elevation_gain = totals.elevationGain;
$form.elevation_loss = totals.elevationLoss;
$form.distance = totals.distance;

View File

@@ -103,7 +103,7 @@
{formatElevation(log.elevation_loss)}
</td>
<td>
{formatTimeHHMM(log.duration)}
{formatTimeHHMM(log.duration ? log.duration / 60 : undefined)}
</td>
{#if showCategory}
<td>

View File

@@ -19,7 +19,7 @@
"altitude": "Höhe",
"api-documentation": "API Dokumentation",
"avatar": "Avatar",
"average-speed": "Durschn. Geschwindigkeit",
"average-speed": "Durchschn. Geschwindigkeit",
"basic-info": "Basisinformation",
"before": "Vor",
"can": "kann",

View File

@@ -58,9 +58,9 @@ export function formatSpeed(speed?: number) {
const unit = get(page).data.settings?.unit ?? "metric";
if (unit == "metric") {
return `${Math.round(speed)} km/h`
return `${(speed * 3.6).toFixed(2)} km/h`
} else {
const mph = speed * 0.621371;
const mph = speed * 3.6 * 0.621371;
return `${Math.round(mph)} mp/h`;
}