From ecb73e1684b42265af3f8d93541600e4d0f9c414 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Tue, 24 Jun 2025 16:14:28 +0200
Subject: Implement i18n

Closes #18
---
 src/frontend/app/routes/map.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/frontend/app/routes/map.tsx')

diff --git a/src/frontend/app/routes/map.tsx b/src/frontend/app/routes/map.tsx
index a938148..ca095e2 100644
--- a/src/frontend/app/routes/map.tsx
+++ b/src/frontend/app/routes/map.tsx
@@ -8,6 +8,7 @@ import { loadStyle } from "app/maps/styleloader";
 import type { Feature as GeoJsonFeature, Point } from 'geojson';
 import LineIcon from "~/components/LineIcon";
 import { Link } from "react-router";
+import { useTranslation } from "react-i18next";
 
 // Default minimal fallback style before dynamic loading
 const defaultStyle: StyleSpecification = {
@@ -20,6 +21,7 @@ const defaultStyle: StyleSpecification = {
 
 // Componente principal del mapa
 export default function StopMap() {
+   const { t } = useTranslation();
    const [stops, setStops] = useState<GeoJsonFeature<Point, { stopId: number; name: string; lines: string[] }>[]>([]);
     const [popupInfo, setPopupInfo] = useState<any>(null);
     const { mapState, updateMapState, theme } = useApp();
-- 
cgit v1.3

