finishes translation
This commit is contained in:
@@ -123,7 +123,8 @@
|
||||
if (!date) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(date);
|
||||
|
||||
dispatch("click", date);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
>
|
||||
<span
|
||||
><i class="fa fa-clock mr-2"></i>{formatTimeHHMM(
|
||||
log.duration,
|
||||
log.duration ? log.duration / 60 : undefined,
|
||||
)}</span
|
||||
>
|
||||
<span
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
{formatElevation(log.elevation_loss)}
|
||||
</td>
|
||||
<td>
|
||||
{formatTimeHHMM(log.duration)}
|
||||
{formatTimeHHMM(log.duration ? log.duration / 60 : undefined)}
|
||||
</td>
|
||||
{#if showCategory}
|
||||
<td>
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user