mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +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:
@@ -128,6 +128,12 @@ const journey: TranslationStrings = {
|
||||
'journey.editor.photoFirst': '1η',
|
||||
'journey.editor.makeFirst': 'Ορισμός ως 1η',
|
||||
'journey.editor.searching': 'Αναζήτηση...',
|
||||
'journey.editor.useCurrentLocation': 'Χρήση της τρέχουσας τοποθεσίας μου',
|
||||
'journey.editor.locationPermissionDenied':
|
||||
'Η πρόσβαση στην τοποθεσία απορρίφθηκε. Επιτρέψτε την στις ρυθμίσεις του προγράμματος περιήγησης και δοκιμάστε ξανά.',
|
||||
'journey.editor.locationTimeout': 'Λήξη χρονικού ορίου κατά τον εντοπισμό της τοποθεσίας σας. Δοκιμάστε ξανά.',
|
||||
'journey.editor.locationUnavailable': 'Δεν ήταν δυνατός ο εντοπισμός της τοποθεσίας σας.',
|
||||
'journey.editor.locationInsecureContext': 'Η τοποθεσία απαιτεί ασφαλή σύνδεση (HTTPS).',
|
||||
'journey.mood.amazing': 'Καταπληκτική',
|
||||
'journey.mood.good': 'Καλή',
|
||||
'journey.mood.neutral': 'Ουδέτερη',
|
||||
|
||||
Reference in New Issue
Block a user