From 275126d19987836a2dcc6e63b062b755b8c6043c Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 12 Aug 2021 10:54:55 +0200 Subject: [PATCH] Translate the leaflet control texts Signed-off-by: Thomas Citharel --- js/src/components/Map.vue | 16 +++++++++++++++- .../components/Map/Vue2LeafletLocateControl.vue | 14 +++++++++++--- js/src/i18n/en_US.json | 5 ++++- js/src/i18n/fr_FR.json | 5 ++++- 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/js/src/components/Map.vue b/js/src/components/Map.vue index 0d52fd943..439129252 100644 --- a/js/src/components/Map.vue +++ b/js/src/components/Map.vue @@ -7,12 +7,18 @@ :center="[lat, lon]" @click="clickMap" @update:zoom="updateZoom" + :options="{ zoomControl: false }" > + { + this.$emit("ready", this.mapObject); + }); } public locate(): void { diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 9f4586aab..faef2ada9 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -1125,5 +1125,8 @@ "Booking": "Booking", "Filter by profile or group name": "Filter by profile or group name", "Filter by name": "Filter by name", - "Redirecting in progress…": "Redirecting in progress…" + "Redirecting in progress…": "Redirecting in progress…", + "Zoom in": "Zoom in", + "Zoom out": "Zoom out", + "Show me where I am": "Show me where I am" } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index a4447f023..e7f3473da 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1216,5 +1216,8 @@ "Booking": "Réservations", "Filter by profile or group name": "Filter par nom du profil ou du groupe", "Filter by name": "Filtrer par nom", - "Redirecting in progress…": "Redirection en cours…" + "Redirecting in progress…": "Redirection en cours…", + "Zoom in": "Zoomer", + "Zoom out": "Dézoomer", + "Show me where I am": "Afficher ma position" }