fix(windows): normalize Windows file paths with leading slash and add i18n to link safety dialog
Strip spurious leading slash from Windows drive-letter paths (/D:/foo → D:/foo) in parseLocalFileTarget so that workspace-relative comparison succeeds and local files can be opened correctly. Display the normalized path in the confirmation dialog. Internationalize all link safety dialog and toast strings across 10 locales.
This commit is contained in:
@@ -1556,6 +1556,21 @@
|
||||
"thoughtForFewSeconds": "تفكير",
|
||||
"thoughtForSeconds": "تفكير"
|
||||
},
|
||||
"linkSafety": {
|
||||
"localFileTitle": "فتح ملف محلي؟",
|
||||
"externalLinkTitle": "فتح رابط خارجي؟",
|
||||
"localFileDescription": "أنت على وشك فتح ملف محلي في لوحة الملفات.",
|
||||
"externalLinkDescription": "أنت على وشك زيارة موقع ويب خارجي.",
|
||||
"cancel": "إلغاء",
|
||||
"opening": "جارٍ الفتح…",
|
||||
"openFile": "فتح الملف",
|
||||
"openLink": "فتح الرابط",
|
||||
"errorCannotOpen": "تعذر فتح الملف المحلي",
|
||||
"errorNoWorkspace": "لا يوجد مجلد مساحة عمل نشط حالياً.",
|
||||
"errorOutsideWorkspace": "الملف خارج مجلد مساحة العمل الحالي.",
|
||||
"errorFailedOpen": "فشل فتح الملف المحلي",
|
||||
"errorFailedLink": "فشل فتح الرابط"
|
||||
},
|
||||
"messageList": {
|
||||
"attachedResources": "الموارد المرفقة",
|
||||
"loading": "جارٍ التحميل...",
|
||||
|
||||
Reference in New Issue
Block a user