mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +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': '1:a',
|
||||
'journey.editor.makeFirst': 'Gör 1:a',
|
||||
'journey.editor.searching': 'Söker...',
|
||||
'journey.editor.useCurrentLocation': 'Använd min nuvarande plats',
|
||||
'journey.editor.locationPermissionDenied':
|
||||
'Platsåtkomst nekades. Tillåt den i webbläsarens inställningar och försök igen.',
|
||||
'journey.editor.locationTimeout': 'Tidsgränsen för att hämta din plats överskreds. Försök igen.',
|
||||
'journey.editor.locationUnavailable': 'Din plats kunde inte fastställas.',
|
||||
'journey.editor.locationInsecureContext': 'Plats kräver en säker anslutning (HTTPS).',
|
||||
'journey.mood.amazing': 'Fantastiskt',
|
||||
'journey.mood.good': 'Bra',
|
||||
'journey.mood.neutral': 'Neutral',
|
||||
|
||||
Reference in New Issue
Block a user