From 3c3746f0375e39bbfc1ae8c4af16fe2ae58a4023 Mon Sep 17 00:00:00 2001
From: RazvanBalota <118636956+RazvanBalota@users.noreply.github.com>
Date: Wed, 24 Jan 2024 20:27:50 +0200
Subject: [PATCH] fix: add locale translation for map messages (#13)
---
public/hand-scissors-regular.svg | 1 +
src/components/Map.jsx | 7 +++++++
2 files changed, 8 insertions(+)
create mode 100644 public/hand-scissors-regular.svg
diff --git a/public/hand-scissors-regular.svg b/public/hand-scissors-regular.svg
new file mode 100644
index 0000000..5082064
--- /dev/null
+++ b/public/hand-scissors-regular.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/Map.jsx b/src/components/Map.jsx
index 768b050..bff972f 100644
--- a/src/components/Map.jsx
+++ b/src/components/Map.jsx
@@ -16,6 +16,13 @@ export default function MyMap() {
style={{ width: 600, height: 600 }}
mapStyle="mapbox://styles/razvan42/clrj101eb00oo01qththo326l"
cooperativeGestures={true}
+ locale={{
+ "ScrollZoomBlocker.CtrlMessage":
+ "Folosește CTRL + Scroll pentru a mări harta ",
+ "ScrollZoomBlocker.CmdMessage":
+ "Folosește ⌘ + scroll pentru a mări harta",
+ "TouchPanBlocker.Message": "Folosește 2 degete pentru a mări harta",
+ }}
>