diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 76f5181..ab16641 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -61,7 +61,7 @@ function App(): React.JSX.Element {
-

Démarrage du moteur de routage...

+

Starting routing engine...

) @@ -71,8 +71,8 @@ function App(): React.JSX.Element { return (
-

Valhalla n'a pas pu démarrer.

-

Vérifiez que Docker est actif dans WSL Ubuntu.

+

Valhalla could not start.

+

Check that Docker is running in WSL Ubuntu.

) diff --git a/src/renderer/src/api/ors.ts b/src/renderer/src/api/ors.ts index 5968845..1832d95 100644 --- a/src/renderer/src/api/ors.ts +++ b/src/renderer/src/api/ors.ts @@ -2,9 +2,9 @@ import type { FeatureCollection, Feature, Polygon, MultiPolygon } from 'geojson' import type { TransportMode } from '../store/useAppStore' const ISOCHRONE_COLORS: Record = { - pedestrian: ['#86efac', '#4ade80', '#22c55e', '#16a34a', '#15803d', '#166534', '#14532d', '#052e16'], - bicycle: ['#67e8f9', '#22d3ee', '#06b6d4', '#0891b2', '#0e7490', '#155e75', '#164e63', '#083344'], - auto: ['#fcd34d', '#fbbf24', '#f59e0b', '#d97706', '#b45309', '#92400e', '#78350f', '#451a03'], + pedestrian: ['#bbf7d0', '#4ade80', '#16a34a', '#166534', '#a3e635', '#65a30d', '#bef264', '#4d7c0f'], + bicycle: ['#a5f3fc', '#22d3ee', '#0891b2', '#155e75', '#818cf8', '#4338ca', '#6ee7b7', '#047857'], + auto: ['#fef08a', '#fbbf24', '#f97316', '#dc2626', '#e879f9', '#9333ea', '#fb7185', '#be123c'], } export function getIsochroneColors(mode: TransportMode): string[] { @@ -111,14 +111,14 @@ export async function fetchIsochrones( } catch (err) { if ((err as Error).name === 'AbortError') throw err console.error('[Valhalla] fetch error:', err) - throw new Error(`Erreur réseau: ${err}`) + throw new Error(`Network error: ${err}`) } console.log('[Valhalla] Response status:', response.status) if (!response.ok) { const errText = await response.text().catch(() => '') - let msg = `Erreur Valhalla ${response.status}` + let msg = `Valhalla error ${response.status}` try { const parsed = JSON.parse(errText) if (parsed.error) msg = `Valhalla ${parsed.error_code}: ${parsed.error}` diff --git a/src/renderer/src/components/ControlPanel.tsx b/src/renderer/src/components/ControlPanel.tsx index 29d96c3..8ac3fde 100644 --- a/src/renderer/src/components/ControlPanel.tsx +++ b/src/renderer/src/components/ControlPanel.tsx @@ -7,9 +7,9 @@ import { exportPng, exportGeoJSON } from '../utils/export' import { TimeRangeEditor } from './TimeRangeEditor' const MODES: { value: TransportMode; label: string; icon: string }[] = [ - { value: 'auto', label: 'Voiture', icon: '🚗' }, - { value: 'bicycle', label: 'Vélo', icon: '🚴' }, - { value: 'pedestrian', label: 'Piéton', icon: '🚶' } + { value: 'auto', label: 'Car', icon: '🚗' }, + { value: 'bicycle', label: 'Bike', icon: '🚴' }, + { value: 'pedestrian', label: 'Walk', icon: '🚶' } ] interface ControlPanelProps { @@ -52,7 +52,7 @@ export function ControlPanel({ mapRef }: ControlPanelProps): React.JSX.Element { } const handleCalculate = async (): Promise => { - if (!point) { setError('Cliquez sur la carte pour définir un point de départ.'); return } + if (!point) { setError('Click on the map to set a starting point.'); return } cancelFetch() setError(null) setLoading(true) @@ -61,7 +61,7 @@ export function ControlPanel({ mapRef }: ControlPanelProps): React.JSX.Element { const data = await fetchIsochrones(point, mode, timeRanges) setIsochrones(data) const elapsed = ((Date.now() - t0) / 1000).toFixed(1) - addToast({ message: `Calculé en ${elapsed}s`, type: 'success', duration: 3000 }) + addToast({ message: `Computed in ${elapsed}s`, type: 'success', duration: 3000 }) addToHistory({ point, mode, timeRanges, isochrones: data, timestamp: Date.now(), label: query || undefined }) } catch (e) { const msg = (e as Error).message @@ -83,7 +83,7 @@ export function ControlPanel({ mapRef }: ControlPanelProps): React.JSX.Element { return () => document.removeEventListener('keydown', handler) }, [point, mode, timeRanges, loading]) // eslint-disable-line react-hooks/exhaustive-deps - const statusLabel = valhallaStatus === 'ready' ? 'Moteur prêt' : valhallaStatus === 'starting' ? 'Démarrage...' : 'Erreur moteur' + const statusLabel = valhallaStatus === 'ready' ? 'Engine ready' : valhallaStatus === 'starting' ? 'Starting...' : 'Engine error' return (