From 98b772539da005b8cbbe95c55d7b1d99bdcff665 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sat, 27 Apr 2024 11:24:29 +0200 Subject: [PATCH] surface localization --- .../lib/components/ElevationProfile.svelte | 2 +- website/src/locales/en.json | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/website/src/lib/components/ElevationProfile.svelte b/website/src/lib/components/ElevationProfile.svelte index 5cad5d1e..bf56f158 100644 --- a/website/src/lib/components/ElevationProfile.svelte +++ b/website/src/lib/components/ElevationProfile.svelte @@ -133,7 +133,7 @@ return [ ` ${$_('quantities.distance')}: ${getDistanceWithUnits(point.x, false)}`, ` ${$_('quantities.slope')}: ${slope} %`, - ` ${$_('quantities.surface')}: ${surface}` + ` ${$_('quantities.surface')}: ${$_(`toolbar.routing.surface.${surface}`)}` ]; } } diff --git a/website/src/locales/en.json b/website/src/locales/en.json index 0d4b76d2..99ffe75a 100644 --- a/website/src/locales/en.json +++ b/website/src/locales/en.json @@ -47,6 +47,37 @@ "water": "Water", "railway": "Railway" }, + "surface": { + "unknown": "Unknown", + "paved": "Paved", + "unpaved": "Unpaved", + "asphalt": "Asphalt", + "concrete": "Concrete", + "chipseal": "Chipseal", + "cobblestone": "Cobblestone", + "unhewn_cobblestone": "Unhewn cobblestone", + "paving_stones": "Paving stones", + "stepping_stones": "Stepping stones", + "sett": "Sett", + "metal": "Metal", + "wood": "Wood", + "compacted": "Compacted gravel", + "fine_gravel": "Fine gravel", + "gravel": "Gravel", + "pebblestone": "Pebblestone", + "rock": "Rock", + "dirt": "Dirt", + "ground": "Ground", + "earth": "Earth", + "snow": "Snow", + "ice": "Ice", + "salt": "Salt", + "mud": "Mud", + "sand": "Sand", + "woodchips": "Woodchips", + "grass": "Grass", + "grass_paver": "Grass paver" + }, "error": { "from": "The start point is too far from the nearest road", "to": "The end point is too far from the nearest road"