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:
@@ -123,6 +123,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