fix: correct Chinese file manager labels
This commit is contained in:
@@ -65,4 +65,15 @@ describe('i18n', () => {
|
||||
expect(translate('zh-CN', 'status.conflict.count', { count: 2, plural: 's' })).toBe('2 个冲突')
|
||||
expect(translate('zh-TW', 'status.conflict.count', { count: 2, plural: 's' })).toBe('2 個衝突')
|
||||
})
|
||||
|
||||
it('uses platform-neutral Chinese labels for revealing files and folders', () => {
|
||||
const revealKeys = ['sidebar.action.revealFolderMenu', 'editor.toolbar.revealFile'] as const
|
||||
|
||||
for (const key of revealKeys) {
|
||||
expect(translate('zh-CN', key)).toBe('在文件管理器中显示')
|
||||
expect(translate('zh-CN', key)).not.toContain('访达')
|
||||
expect(translate('zh-TW', key)).toBe('在檔案管理器中顯示')
|
||||
expect(translate('zh-TW', key)).not.toContain('訪達')
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -479,7 +479,7 @@
|
||||
"sidebar.action.renameFolder": "重命名文件夹",
|
||||
"sidebar.action.deleteFolder": "删除文件夹",
|
||||
"sidebar.action.createNodeInFolderMenu": "在此文件夹中创建新节点",
|
||||
"sidebar.action.revealFolderMenu": "在访达中显示",
|
||||
"sidebar.action.revealFolderMenu": "在文件管理器中显示",
|
||||
"sidebar.action.copyFolderPathMenu": "复制文件夹路径",
|
||||
"sidebar.action.renameFolderMenu": "重命名文件夹...",
|
||||
"sidebar.action.deleteFolderMenu": "删除文件夹...",
|
||||
@@ -583,7 +583,7 @@
|
||||
"editor.toolbar.restoreArchived": "恢复这条归档笔记",
|
||||
"editor.toolbar.archive": "归档这条笔记",
|
||||
"editor.toolbar.delete": "删除这条笔记",
|
||||
"editor.toolbar.revealFile": "在访达中显示",
|
||||
"editor.toolbar.revealFile": "在文件管理器中显示",
|
||||
"editor.toolbar.copyFilePath": "复制文件路径",
|
||||
"editor.toolbar.copyNoteDeepLink": "复制笔记深层链接",
|
||||
"editor.toolbar.exportPdf": "将笔记导出为 PDF",
|
||||
|
||||
@@ -479,7 +479,7 @@
|
||||
"sidebar.action.renameFolder": "重新命名資料夾",
|
||||
"sidebar.action.deleteFolder": "刪除資料夾",
|
||||
"sidebar.action.createNodeInFolderMenu": "在此資料夾中建立新節點",
|
||||
"sidebar.action.revealFolderMenu": "在訪達中顯示",
|
||||
"sidebar.action.revealFolderMenu": "在檔案管理器中顯示",
|
||||
"sidebar.action.copyFolderPathMenu": "複製資料夾路徑",
|
||||
"sidebar.action.renameFolderMenu": "重新命名資料夾...",
|
||||
"sidebar.action.deleteFolderMenu": "刪除資料夾...",
|
||||
@@ -583,7 +583,7 @@
|
||||
"editor.toolbar.restoreArchived": "恢復這條歸檔筆記",
|
||||
"editor.toolbar.archive": "歸檔這條筆記",
|
||||
"editor.toolbar.delete": "刪除這條筆記",
|
||||
"editor.toolbar.revealFile": "在訪達中顯示",
|
||||
"editor.toolbar.revealFile": "在檔案管理器中顯示",
|
||||
"editor.toolbar.copyFilePath": "複製檔案路徑",
|
||||
"editor.toolbar.copyNoteDeepLink": "複製筆記深層連結",
|
||||
"editor.toolbar.exportPdf": "將筆記匯出為 PDF",
|
||||
|
||||
Reference in New Issue
Block a user