diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-06-24 16:14:28 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-06-24 16:14:28 +0200 |
| commit | ecb73e1684b42265af3f8d93541600e4d0f9c414 (patch) | |
| tree | 26e413973b32de0367aa06cfc0df329c67733821 /src/frontend/app/routes/map.tsx | |
| parent | f65b4e1e0d5648038823962349279be4badc68ed (diff) | |
Implement i18n
Closes #18
Diffstat (limited to 'src/frontend/app/routes/map.tsx')
| -rw-r--r-- | src/frontend/app/routes/map.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |
