mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +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:
@@ -125,6 +125,12 @@ const journey: TranslationStrings = {
|
||||
'journey.editor.photoFirst': '1º',
|
||||
'journey.editor.makeFirst': 'Tornar 1º',
|
||||
'journey.editor.searching': 'Pesquisando...',
|
||||
'journey.editor.useCurrentLocation': 'Usar minha localização atual',
|
||||
'journey.editor.locationPermissionDenied':
|
||||
'O acesso à localização foi negado. Permita nas configurações do navegador e tente novamente.',
|
||||
'journey.editor.locationTimeout': 'Tempo esgotado ao obter sua localização. Tente novamente.',
|
||||
'journey.editor.locationUnavailable': 'Não foi possível determinar sua localização.',
|
||||
'journey.editor.locationInsecureContext': 'A localização requer uma conexão segura (HTTPS).',
|
||||
'journey.mood.amazing': 'Incrível',
|
||||
'journey.mood.good': 'Bom',
|
||||
'journey.mood.neutral': 'Neutro',
|
||||
|
||||
Reference in New Issue
Block a user