mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 23:27:31 +00:00
Add "use my current location" button to Journey entry editor
- One-shot getCurrentPositionOnce() helper in useGeolocation with typed error codes (unsupported, insecure context, permission denied, timeout) - Button inside the entry editor Location field fills coordinates from the device and reverse-geocodes the place name via /api/maps/reverse, falling back to formatted coordinates when no name is available - New journey.editor.* i18n keys in all 23 locales - Unit tests for the helper and component tests for the button flow
This commit is contained in:
@@ -126,6 +126,12 @@ const journey: TranslationStrings = {
|
||||
'journey.editor.photoFirst': '1er',
|
||||
'journey.editor.makeFirst': 'Mettre en 1er',
|
||||
'journey.editor.searching': 'Recherche...',
|
||||
'journey.editor.useCurrentLocation': 'Utiliser ma position actuelle',
|
||||
'journey.editor.locationPermissionDenied':
|
||||
"L'accès à la position a été refusé. Autorisez-le dans les paramètres de votre navigateur et réessayez.",
|
||||
'journey.editor.locationTimeout': 'Délai dépassé pour obtenir votre position. Réessayez.',
|
||||
'journey.editor.locationUnavailable': 'Impossible de déterminer votre position.',
|
||||
'journey.editor.locationInsecureContext': 'La géolocalisation nécessite une connexion sécurisée (HTTPS).',
|
||||
'journey.mood.amazing': 'Incroyable',
|
||||
'journey.mood.good': 'Bien',
|
||||
'journey.mood.neutral': 'Neutre',
|
||||
|
||||
Reference in New Issue
Block a user