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:
xintaofei
2026-04-13 22:47:14 +08:00
parent b76dc63e77
commit 0a39e1daf4
11 changed files with 184 additions and 19 deletions

View File

@@ -1556,6 +1556,21 @@
"thoughtForFewSeconds": "考えた",
"thoughtForSeconds": "考えた"
},
"linkSafety": {
"localFileTitle": "ローカルファイルを開きますか?",
"externalLinkTitle": "外部リンクを開きますか?",
"localFileDescription": "ファイルパネルでローカルファイルを開こうとしています。",
"externalLinkDescription": "外部ウェブサイトにアクセスしようとしています。",
"cancel": "キャンセル",
"opening": "開いています…",
"openFile": "ファイルを開く",
"openLink": "リンクを開く",
"errorCannotOpen": "ローカルファイルを開けません",
"errorNoWorkspace": "現在アクティブなワークスペースフォルダがありません。",
"errorOutsideWorkspace": "ファイルが現在のワークスペースフォルダの外にあります。",
"errorFailedOpen": "ローカルファイルを開けませんでした",
"errorFailedLink": "リンクを開けませんでした"
},
"messageList": {
"attachedResources": "添付リソース",
"loading": "読み込み中...",