feat(ai-chat): 增加自动定位权限提示及处理逻辑,优化用户体验

This commit is contained in:
2026-09-28 13:57:46 +08:00
parent 4168c24fd6
commit 5efae5c38b
3 changed files with 298 additions and 3 deletions

View File

@@ -141,6 +141,13 @@ export const lang = {
chooseVideoFail: 'Failed to select video',
audioNotReady: 'Audio not ready',
location: 'Location',
// PR-AUTO-LOCATION (2026-09-28): automatic location permission prompts
locationPermissionTitle: 'Location Permission Required',
locationPermissionH5: 'Please enable location permission via the lock icon in your browser address bar, then resend the message.',
locationPermissionMp: 'To help the AI better answer location-related questions, please enable location permission.\n\nTap "Open Settings" to enable it in your system settings, then return to this page and resend the message.',
locationSettingBtn: 'Open Settings',
locationSkipBtn: 'Not Now',
locationH5GuideBtn: 'Got it',
// ====== ai-chat-voice-panel ======
voiceInputTitle: 'Voice Input',