From c353b0d30fb3670a5c2bb485616d10fea8ab6c9d Mon Sep 17 00:00:00 2001 From: JimmFly <447268514@qq.com> Date: Wed, 21 Feb 2024 12:47:17 +0000 Subject: [PATCH] chore: replace ambiguous "page" with "doc" (#5761) close TOV-532 --- .../page-list/components/new-page-button.tsx | 2 +- .../core/src/pages/workspace/collection.tsx | 6 +- .../src/pages/workspace/page-list-empty.tsx | 2 +- .../src/main/application-menu/create.ts | 2 +- .../src/main/application-menu/index.ts | 2 +- packages/frontend/i18n/src/resources/en.json | 147 +++++++++--------- tests/affine-local/e2e/all-page.spec.ts | 2 +- tests/affine-local/e2e/quick-search.spec.ts | 14 +- 8 files changed, 88 insertions(+), 89 deletions(-) diff --git a/packages/frontend/core/src/components/page-list/components/new-page-button.tsx b/packages/frontend/core/src/components/page-list/components/new-page-button.tsx index dfcd93e99f..95b28bfbfa 100644 --- a/packages/frontend/core/src/components/page-list/components/new-page-button.tsx +++ b/packages/frontend/core/src/components/page-list/components/new-page-button.tsx @@ -29,7 +29,7 @@ export const CreateNewPagePopup = ({ }} > } onClick={createNewPage} diff --git a/packages/frontend/core/src/pages/workspace/collection.tsx b/packages/frontend/core/src/pages/workspace/collection.tsx index 4b0d0425ec..414fbdd44d 100644 --- a/packages/frontend/core/src/pages/workspace/collection.tsx +++ b/packages/frontend/core/src/pages/workspace/collection.tsx @@ -59,12 +59,12 @@ export const Component = function CollectionPage() { const collection = collectionService.collectionsTrash.value.find( v => v.collection.id === params.collectionId ); - let text = 'Collection is not exist'; + let text = 'Collection does not exist'; if (collection) { if (collection.userId) { - text = `${collection.collection.name} is deleted by ${collection.userName}`; + text = `${collection.collection.name} has been deleted by ${collection.userName}`; } else { - text = `${collection.collection.name} is deleted`; + text = `${collection.collection.name} has been deleted`; } } pushNotification({ diff --git a/packages/frontend/core/src/pages/workspace/page-list-empty.tsx b/packages/frontend/core/src/pages/workspace/page-list-empty.tsx index 6034085587..4aa24cb3e9 100644 --- a/packages/frontend/core/src/pages/workspace/page-list-empty.tsx +++ b/packages/frontend/core/src/pages/workspace/page-list-empty.tsx @@ -26,7 +26,7 @@ export const EmptyPageList = ({ if (type === 'all') { const createNewPageButton = ( ); if (environment.isDesktop) { diff --git a/packages/frontend/electron/src/main/application-menu/create.ts b/packages/frontend/electron/src/main/application-menu/create.ts index dd16bc3b6c..bc3f39d0ef 100644 --- a/packages/frontend/electron/src/main/application-menu/create.ts +++ b/packages/frontend/electron/src/main/application-menu/create.ts @@ -40,7 +40,7 @@ export function createApplicationMenu() { submenu: [ { id: MENUITEM_NEW_PAGE, - label: 'New Page', + label: 'New Doc', accelerator: isMac ? 'Cmd+N' : 'Ctrl+N', click: () => { applicationMenuSubjects.newPageAction.next(); diff --git a/packages/frontend/electron/src/main/application-menu/index.ts b/packages/frontend/electron/src/main/application-menu/index.ts index d0c25ebe5b..6c739346d3 100644 --- a/packages/frontend/electron/src/main/application-menu/index.ts +++ b/packages/frontend/electron/src/main/application-menu/index.ts @@ -9,7 +9,7 @@ export * from './subject'; */ export const applicationMenuEvents = { /** - * File -> New Page + * File -> New Doc */ onNewPageAction: (fn: () => void) => { const sub = applicationMenuSubjects.newPageAction.subscribe(fn); diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json index 19e3ca2c1f..a077a301cf 100644 --- a/packages/frontend/i18n/src/resources/en.json +++ b/packages/frontend/i18n/src/resources/en.json @@ -11,14 +11,14 @@ "Add Filter": "Add Filter", "Add Workspace": "Add Workspace", "Add Workspace Hint": "Select the existed database file", - "Add a subpage inside": "Add a subpage inside", + "Add a subpage inside": "Add a sub doc inside", "Add to Favorites": "Add to Favourites", "Add to favorites": "Add to favourites", "Added Successfully": "Added Successfully", "Added to Favorites": "Added to Favourites", "All changes are saved locally": "All changes are saved locally", "All data has been stored in the cloud": "All data has been stored in the cloud. ", - "All pages": "All pages", + "All pages": "All docs", "App Version": "App Version", "Appearance Settings": "Appearance Settings", "Append to Daily Note": "Append to Daily Note", @@ -84,7 +84,7 @@ "Delete Workspace Description2": "Deleting <1>{{workspace}} will delete both local and cloud data, this operation cannot be undone, please proceed with caution.", "Delete Workspace Label Hint": "After deleting this Workspace, you will permanently delete all of its content for everyone. No one will be able to recover the content of this Workspace.", "Delete Workspace placeholder": "Please type “Delete” to confirm", - "Delete page?": "Delete page?", + "Delete page?": "Delete doc?", "Delete permanently": "Delete permanently", "Disable": "Disable", "Disable Public Link": "Disable Public Link", @@ -129,7 +129,7 @@ "FILE_ALREADY_EXISTS": "File already exists", "Failed to publish workspace": "Failed to publish workspace", "Favorite": "Favourite", - "Favorite pages for easy access": "Favourite pages for easy access", + "Favorite pages for easy access": "Favourite docs for easy access", "Favorited": "Favourited", "Favorites": "Favourites", "Filters": "Filters", @@ -191,8 +191,8 @@ "Move folder": "Move folder", "Move folder hint": "Select a new storage location.", "Move folder success": "Move folder success", - "Move page to": "Move page to...", - "Move page to...": "Move page to...", + "Move page to": "Move doc to...", + "Move page to...": "Move doc to...", "Move to": "Move to", "Move to Trash": "Move to Trash", "Moved to Trash": "Moved to Trash", @@ -200,8 +200,8 @@ "Name Your Workspace": "Name Your Workspace", "NativeTitleBar": "Native Titlebar", "Navigation Path": "Navigation Path", - "New Keyword Page": "New '{{query}}' page", - "New Page": "New Page", + "New Keyword Page": "New '{{query}}' doc", + "New Page": "New Doc", "New Workspace": "New Workspace", "New version is ready": "New version is ready", "No item": "No item", @@ -214,7 +214,7 @@ "Open folder": "Open folder", "Open folder hint": "Check the where the storage folder is located.", "Open in new tab": "Open in new tab", - "Organize pages to build knowledge": "Organise pages to build knowledge", + "Organize pages to build knowledge": "Organise docs to build knowledge", "Owner": "Owner", "Page": "Page", "Paper": "Paper", @@ -236,7 +236,7 @@ "Quick search": "Quick search", "Quick search placeholder": "Quick Search...", "Quick search placeholder2": "Search in {{workspace}}", - "RFP": "Pages can be freely added/removed from pivots, remaining accessible from \"All Pages\".", + "RFP": "Docs can be freely added/removed from pivots, remaining accessible from \"All Docs\".", "Recent": "Recent", "Redo": "Redo", "Reduce indent": "Reduce indent", @@ -266,8 +266,8 @@ "Share Menu Public Workspace Description1": "Invite others to join the Workspace or publish it to web.", "Share Menu Public Workspace Description2": "Current workspace has been published to the web as a public workspace.", "Share with link": "Share with link", - "Shared Pages": "Shared Pages", - "Shared Pages Description": "Sharing page publicly requires AFFiNE Cloud service.", + "Shared Pages": "Shared Docs", + "Shared Pages Description": "Sharing doc publicly requires AFFiNE Cloud service.", "Shared Pages In Public Workspace Description": "The entire Workspace is published on the web and can be edited via <1>Workspace Settings.", "Shortcuts": "Shortcuts", "Sidebar": "Sidebar", @@ -354,7 +354,7 @@ "com.affine.aboutAFFiNE.checkUpdate.subtitle.checking": "Checking for updates...", "com.affine.aboutAFFiNE.checkUpdate.subtitle.update-available": "New update available ({{version}})", "com.affine.aboutAFFiNE.checkUpdate.subtitle.downloading": "Downloading the latest version...", - "com.affine.aboutAFFiNE.checkUpdate.subtitle.restart": "Restart ot apply update.", + "com.affine.aboutAFFiNE.checkUpdate.subtitle.restart": "Restart to apply update.", "com.affine.aboutAFFiNE.checkUpdate.subtitle.latest": "You’ve got the latest version of AFFiNE.", "com.affine.aboutAFFiNE.checkUpdate.subtitle.error": "Unable to connect to the update server.", "com.affine.aboutAFFiNE.community.title": "Communities", @@ -369,7 +369,7 @@ "com.affine.aboutAFFiNE.version.app": "App Version", "com.affine.aboutAFFiNE.version.editor.title": "Editor Version", "com.affine.aboutAFFiNE.version.title": "Version", - "com.affine.all-pages.header": "All Pages", + "com.affine.all-pages.header": "All Docs", "com.affine.appUpdater.downloading": "Downloading", "com.affine.appUpdater.installUpdate": "Restart to install update", "com.affine.appUpdater.openDownloadPage": "Open download page", @@ -388,7 +388,7 @@ "com.affine.appearanceSettings.fontStyle.mono": "Mono", "com.affine.appearanceSettings.fontStyle.sans": "Sans", "com.affine.appearanceSettings.fontStyle.serif": "Serif", - "com.affine.appearanceSettings.fullWidth.description": "Maximum display of content within a page.", + "com.affine.appearanceSettings.fullWidth.description": "Maximum display of content within a doc.", "com.affine.appearanceSettings.fullWidth.title": "Full width Layout", "com.affine.appearanceSettings.language.description": "Select the language for the interface.", "com.affine.appearanceSettings.language.title": "Display Language", @@ -493,40 +493,40 @@ "com.affine.cmdk.affine.category.affine.help": "Help", "com.affine.cmdk.affine.category.affine.layout": "Layout Controls", "com.affine.cmdk.affine.category.affine.navigation": "Navigation", - "com.affine.cmdk.affine.category.affine.pages": "Pages", + "com.affine.cmdk.affine.category.affine.pages": "Docs", "com.affine.cmdk.affine.category.affine.recent": "Recent", "com.affine.cmdk.affine.category.affine.settings": "Settings", "com.affine.cmdk.affine.category.affine.updates": "Updates", "com.affine.cmdk.affine.category.editor.edgeless": "Edgeless Commands", "com.affine.cmdk.affine.category.editor.insert-object": "Insert Object", - "com.affine.cmdk.affine.category.editor.page": "Page Commands", + "com.affine.cmdk.affine.category.editor.page": "Doc Commands", "com.affine.cmdk.affine.category.results": "Results", "com.affine.cmdk.affine.client-border-style.to": "Change Client Border Style to", "com.affine.cmdk.affine.color-mode.to": "Change Colour Mode to", "com.affine.cmdk.affine.color-scheme.to": "Change Colour Scheme to", "com.affine.cmdk.affine.contact-us": "Contact Us", "com.affine.cmdk.affine.create-new-edgeless-as": "New \"{{keyWord}}\" Edgeless", - "com.affine.cmdk.affine.create-new-page-as": "New \"{{keyWord}}\" Page", + "com.affine.cmdk.affine.create-new-page-as": "New \"{{keyWord}}\" Doc", "com.affine.cmdk.affine.display-language.to": "Change Display Language to", "com.affine.cmdk.affine.editor.add-to-favourites": "Add to Favourites", "com.affine.cmdk.affine.editor.edgeless.presentation-start": "Start Presentation", "com.affine.cmdk.affine.editor.remove-from-favourites": "Remove from Favourites", "com.affine.cmdk.affine.editor.restore-from-trash": "Restore from Trash", - "com.affine.cmdk.affine.editor.trash-footer-hint": "This page has been moved to the trash, you can either restore or permanently delete it.", + "com.affine.cmdk.affine.editor.trash-footer-hint": "This doc has been moved to the trash, you can either restore or permanently delete it.", "com.affine.cmdk.affine.font-style.to": "Change Font Style to", "com.affine.cmdk.affine.full-width-layout.to": "Change Full Width Layout to", "com.affine.cmdk.affine.getting-started": "Getting Started", "com.affine.cmdk.affine.import-workspace": "Import Workspace", "com.affine.cmdk.affine.left-sidebar.collapse": "Collapse Left Sidebar", "com.affine.cmdk.affine.left-sidebar.expand": "Expand Left Sidebar", - "com.affine.cmdk.affine.navigation.goto-all-pages": "Go to All Pages", + "com.affine.cmdk.affine.navigation.goto-all-pages": "Go to All Docs", "com.affine.cmdk.affine.navigation.goto-edgeless-list": "Go to Edgeless List", "com.affine.cmdk.affine.navigation.goto-page-list": "Go to Page List", "com.affine.cmdk.affine.navigation.goto-trash": "Go to Trash", "com.affine.cmdk.affine.navigation.goto-workspace": "Go to Workspace", "com.affine.cmdk.affine.navigation.open-settings": "Go to Settings", "com.affine.cmdk.affine.new-edgeless-page": "New Edgeless", - "com.affine.cmdk.affine.new-page": "New Page", + "com.affine.cmdk.affine.new-page": "New Doc", "com.affine.cmdk.affine.new-workspace": "New Workspace", "com.affine.cmdk.affine.noise-background-on-the-sidebar.to": "Change Noise Background On The Sidebar to", "com.affine.cmdk.affine.restart-to-upgrade": "Restart to Upgrade", @@ -534,22 +534,22 @@ "com.affine.cmdk.affine.switch-state.on": "ON", "com.affine.cmdk.affine.translucent-ui-on-the-sidebar.to": "Change Translucent UI On The Sidebar to", "com.affine.cmdk.affine.whats-new": "What's New", - "com.affine.cmdk.affine.editor.reveal-page-history-modal": "Reveal Page History Modal", + "com.affine.cmdk.affine.editor.reveal-page-history-modal": "Reveal Doc History Modal", "com.affine.cmdk.placeholder": "Type a command or search anything...", "com.affine.collection-bar.action.tooltip.delete": "Delete", "com.affine.collection-bar.action.tooltip.edit": "Edit", "com.affine.collection-bar.action.tooltip.pin": "Pin to Sidebar", "com.affine.collection-bar.action.tooltip.unpin": "Unpin", - "com.affine.collection.addPage.alreadyExists": "Page already exists", + "com.affine.collection.addPage.alreadyExists": "Doc already exists", "com.affine.collection.addPage.success": "Added successfully", "com.affine.collection.removePage.success": "Removed successfully", - "com.affine.collection.addPages": "Add Pages", - "com.affine.collection.addPages.tips": "<0>Add pages: You can freely select pages and add them to the collection.", + "com.affine.collection.addPages": "Add Docs", + "com.affine.collection.addPages.tips": "<0>Add docs: You can freely select docs and add them to the collection.", "com.affine.collection.addRules": "Add Rules", - "com.affine.collection.addRules.tips": "<0>Add rules: Rules are based on filtering. After adding rules, pages that meet the requirements will be automatically added to the current collection.", + "com.affine.collection.addRules.tips": "<0>Add rules: Rules are based on filtering. After adding rules, docs that meet the requirements will be automatically added to the current collection.", "com.affine.collection.allCollections": "All Collections", "com.affine.collection.emptyCollection": "Empty Collection", - "com.affine.collection.emptyCollectionDescription": "Collection is a smart folder where you can manually add pages or automatically add pages through rules.", + "com.affine.collection.emptyCollectionDescription": "Collection is a smart folder where you can manually add docs or automatically add docs through rules.", "com.affine.collection.helpInfo": "HELP INFO", "com.affine.collection.menu.edit": "Edit Collection", "com.affine.collection.menu.rename": "Rename", @@ -570,38 +570,38 @@ "com.affine.editCollection.button.create": "Create", "com.affine.editCollection.createCollection": "Create Collection", "com.affine.editCollection.filters": "Filters", - "com.affine.editCollection.pages": "Pages", + "com.affine.editCollection.pages": "Docs", "com.affine.editCollection.pages.clear": "Clear selected", "com.affine.editCollection.renameCollection": "Rename Collection", "com.affine.editCollection.rules": "Rules", "com.affine.editCollection.rules.countTips": "Selected <1>{{selectedCount}}, filtered <3>{{filteredCount}}", - "com.affine.editCollection.rules.countTips.more": "Showing <1>{{count}} pages.", - "com.affine.editCollection.rules.countTips.one": "Showing <1>{{count}} page.", - "com.affine.editCollection.rules.countTips.zero": "Showing <1>{{count}} pages.", + "com.affine.editCollection.rules.countTips.more": "Showing <1>{{count}} docs.", + "com.affine.editCollection.rules.countTips.one": "Showing <1>{{count}} doc.", + "com.affine.editCollection.rules.countTips.zero": "Showing <1>{{count}} docs.", "com.affine.editCollection.rules.empty.noResults": "No Results", - "com.affine.editCollection.rules.empty.noResults.tips": "No pages meet the filtering rules", + "com.affine.editCollection.rules.empty.noResults.tips": "No docs meet the filtering rules", "com.affine.editCollection.rules.empty.noRules": "No Rules", - "com.affine.editCollection.rules.empty.noRules.tips": "Please <1>add rules to save this collection or switch to <3>Pages, use manual selection mode", - "com.affine.editCollection.rules.include.add": "Add selected page", + "com.affine.editCollection.rules.empty.noRules.tips": "Please <1>add rules to save this collection or switch to <3>Docs, use manual selection mode", + "com.affine.editCollection.rules.include.add": "Add selected doc", "com.affine.editCollection.rules.include.is": "is", - "com.affine.editCollection.rules.include.page": "Page", - "com.affine.editCollection.rules.include.tips": "“Selected pages” refers to manually adding pages rather than automatically adding them through rule matching. You can manually add pages through the “Add selected pages” option or by dragging and dropping.", - "com.affine.editCollection.rules.include.tipsTitle": "What is \"Selected pages\"?", - "com.affine.editCollection.rules.include.title": "Selected pages", + "com.affine.editCollection.rules.include.page": "Doc", + "com.affine.editCollection.rules.include.tips": "“Selected docs” refers to manually adding docs rather than automatically adding them through rule matching. You can manually add docs through the “Add selected docs” option or by dragging and dropping.", + "com.affine.editCollection.rules.include.tipsTitle": "What is \"Selected docs\"?", + "com.affine.editCollection.rules.include.title": "Selected docs", "com.affine.editCollection.rules.preview": "Preview", "com.affine.editCollection.rules.reset": "Reset", - "com.affine.editCollection.rules.tips": "Pages that meet the rules will be added to the current collection <2>{{highlight}}", + "com.affine.editCollection.rules.tips": "Docs that meet the rules will be added to the current collection <2>{{highlight}}", "com.affine.editCollection.rules.tips.highlight": "automatically", "com.affine.editCollection.save": "Save", "com.affine.editCollection.saveCollection": "Save as New Collection", - "com.affine.editCollection.search.placeholder": "Search page...", + "com.affine.editCollection.search.placeholder": "Search doc...", "com.affine.editCollection.untitledCollection": "Untitled Collection", "com.affine.editCollection.updateCollection": "Update Collection", - "com.affine.editCollectionName.createTips": "Collection is a smart folder where you can manually add pages or automatically add pages through rules.", + "com.affine.editCollectionName.createTips": "Collection is a smart folder where you can manually add docs or automatically add docs through rules.", "com.affine.editCollectionName.name": "Name", "com.affine.editCollectionName.name.placeholder": "Collection Name", "com.affine.editorModeSwitch.tooltip": "Switch", - "com.affine.emptyDesc": "There's no page here yet", + "com.affine.emptyDesc": "There's no doc here yet", "com.affine.emptyDesc.collection": "There's no collection here yet", "com.affine.emptyDesc.tag": "There's no tag here yet", "com.affine.enableAffineCloudModal.button.cancel": "Cancel", @@ -658,7 +658,7 @@ "com.affine.keyboardShortcuts.link": "Hyperlink (with selected text)", "com.affine.keyboardShortcuts.moveDown": "Move Down", "com.affine.keyboardShortcuts.moveUp": "Move Up", - "com.affine.keyboardShortcuts.newPage": "New Page", + "com.affine.keyboardShortcuts.newPage": "New Doc", "com.affine.keyboardShortcuts.note": "Note", "com.affine.keyboardShortcuts.pen": "Pen", "com.affine.keyboardShortcuts.quickSearch": "Quick Search", @@ -688,9 +688,9 @@ "com.affine.loading": "Loading...", "com.affine.moreThan30Days": "Older than a month", "com.affine.moveToTrash.confirmModal.description": "{{title}} will be moved to Trash", - "com.affine.moveToTrash.confirmModal.description.multiple": "{{ number }} pages will be moved to Trash", - "com.affine.moveToTrash.confirmModal.title": "Delete page?", - "com.affine.moveToTrash.confirmModal.title.multiple": "Delete {{ number }} pages?", + "com.affine.moveToTrash.confirmModal.description.multiple": "{{ number }} docs will be moved to Trash", + "com.affine.moveToTrash.confirmModal.title": "Delete doc?", + "com.affine.moveToTrash.confirmModal.title.multiple": "Delete {{ number }} docs?", "com.affine.moveToTrash.title": "Move to Trash", "com.affine.nameWorkspace.button.cancel": "Cancel", "com.affine.nameWorkspace.button.create": "Create", @@ -715,15 +715,15 @@ "com.affine.page.group-header.clear": "Clear Selection", "com.affine.page.group-header.select-all": "Select All", "com.affine.page.toolbar.selected": "<0>{{count}} selected", - "com.affine.page.toolbar.selected_one": "<0>{{count}} page selected", - "com.affine.page.toolbar.selected_others": "<0>{{count}} page(s) selected", + "com.affine.page.toolbar.selected_one": "<0>{{count}} doc selected", + "com.affine.page.toolbar.selected_others": "<0>{{count}} doc(s) selected", "com.affine.collection.toolbar.selected": "<0>{{count}} selected", "com.affine.collection.toolbar.selected_one": "<0>{{count}} collection selected", "com.affine.collection.toolbar.selected_others": "<0>{{count}} collection(s) selected", "com.affine.tag.toolbar.selected": "<0>{{count}} selected", "com.affine.tag.toolbar.selected_one": "<0>{{count}} tag selected", "com.affine.tag.toolbar.selected_others": "<0>{{count}} tag(s) selected", - "com.affine.pageMode": "Page Mode", + "com.affine.pageMode": "Doc Mode", "com.affine.pageMode.all": "all", "com.affine.pageMode.edgeless": "Edgeless", "com.affine.pageMode.page": "Page", @@ -826,16 +826,16 @@ "com.affine.payment.storage-limit.view": "View", "com.affine.publicLinkDisableModal.button.cancel": "Cancel", "com.affine.publicLinkDisableModal.button.disable": "Disable", - "com.affine.publicLinkDisableModal.description": "Disabling this public link will prevent anyone with the link from accessing this page.", + "com.affine.publicLinkDisableModal.description": "Disabling this public link will prevent anyone with the link from accessing this doc.", "com.affine.publicLinkDisableModal.title": "Disable Public Link", "com.affine.rootAppSidebar.collections": "Collections", "com.affine.rootAppSidebar.favorites": "Favourites", "com.affine.rootAppSidebar.favorites.empty": "You can add documents to your favourites", "com.affine.rootAppSidebar.others": "Others", "com.affine.selectPage.empty": "Empty", - "com.affine.selectPage.empty.tips": "No page titles contain <1>{{search}}", + "com.affine.selectPage.empty.tips": "No doc titles contain <1>{{search}}", "com.affine.selectPage.selected": "Selected", - "com.affine.selectPage.title": "Add include page", + "com.affine.selectPage.title": "Add include doc", "com.affine.setDBLocation.button.customize": "Customise", "com.affine.setDBLocation.button.defaultLocation": "Default Location", "com.affine.setDBLocation.description": "Select where you want to create your workspace. The data of workspace is saved locally by default.", @@ -861,7 +861,7 @@ "com.affine.settings.appearance": "Appearance", "com.affine.settings.appearance.border-style-description": "Customise the appearance of the client.", "com.affine.settings.appearance.date-format-description": "Customise your date style.", - "com.affine.settings.appearance.full-width-description": "Maximum display of content within a page.", + "com.affine.settings.appearance.full-width-description": "Maximum display of content within a doc.", "com.affine.settings.appearance.language-description": "Select the language for the interface.", "com.affine.settings.appearance.start-week-description": "By default, the week starts on Sunday.", "com.affine.settings.appearance.window-frame-description": "Customise appearance of Windows Client.", @@ -903,14 +903,14 @@ "com.affine.settings.workspace.experimental-features.header.plugins": "Experimental Features", "com.affine.settings.workspace.preferences": "Preference", "com.affine.settings.workspace.experimental-features": "Plugins", - "com.affine.share-menu.EnableCloudDescription": "Sharing page requires AFFiNE Cloud.", + "com.affine.share-menu.EnableCloudDescription": "Sharing doc requires AFFiNE Cloud.", "com.affine.share-menu.ShareMode": "Share mode", - "com.affine.share-menu.SharePage": "Share Page", + "com.affine.share-menu.SharePage": "Share Doc", "com.affine.share-menu.ShareViaExport": "Share via Export", - "com.affine.share-menu.ShareViaExportDescription": "Download a static copy of your page to share with others.", + "com.affine.share-menu.ShareViaExportDescription": "Download a static copy of your doc to share with others.", "com.affine.share-menu.ShareWithLink": "Share with link", - "com.affine.share-menu.ShareWithLinkDescription": "Create a link you can easily share with anyone. The visitors will open your page in the form od a document", - "com.affine.share-menu.SharedPage": "Shared Page", + "com.affine.share-menu.ShareWithLinkDescription": "Create a link you can easily share with anyone. The visitors will open your doc in the form od a document", + "com.affine.share-menu.SharedPage": "Shared Doc", "com.affine.share-menu.confirm-modify-mode.notification.fail.message": "Please try again later.", "com.affine.share-menu.confirm-modify-mode.notification.fail.title": "Failed to modify", "com.affine.share-menu.confirm-modify-mode.notification.success.message": "You have changed the public link from {{preMode}} Mode to {{currentMode}} Mode.", @@ -922,10 +922,10 @@ "com.affine.share-menu.create-public-link.notification.success.title": "Public link created", "com.affine.share-menu.disable-publish-link.notification.fail.message": "Please try again later.", "com.affine.share-menu.disable-publish-link.notification.fail.title": "Failed to disable public link", - "com.affine.share-menu.disable-publish-link.notification.success.message": "This page is no longer shared publicly.", + "com.affine.share-menu.disable-publish-link.notification.success.message": "This doc is no longer shared publicly.", "com.affine.share-menu.disable-publish-link.notification.success.title": "Public link disabled", "com.affine.share-menu.publish-to-web": "Publish to Web", - "com.affine.share-menu.publish-to-web.description": "Let anyone with a link view a read-only version of this page.", + "com.affine.share-menu.publish-to-web.description": "Let anyone with a link view a read-only version of this doc.", "com.affine.share-menu.share-privately": "Share Privately", "com.affine.share-menu.share-privately.description": "Only members of this Workspace can open this link.", "com.affine.share-menu.shareButton": "Share", @@ -958,7 +958,7 @@ "com.affine.toastMessage.restored": "{{title}} restored", "com.affine.toastMessage.successfullyDeleted": "Successfully deleted", "com.affine.toastMessage.rename": "Successfully renamed", - "com.affine.toastMessage.addLinkedPage": "Successfully added linked page", + "com.affine.toastMessage.addLinkedPage": "Successfully added linked doc", "com.affine.today": "Today", "com.affine.trashOperation.delete": "Delete", "com.affine.trashOperation.delete.description": "Once deleted, you can't undo this action. Do you confirm?", @@ -999,14 +999,15 @@ "com.affine.workspaceList.addWorkspace.create": "Create Workspace", "com.affine.workspaceList.workspaceListType.cloud": "Cloud Sync", "com.affine.workspaceList.workspaceListType.local": "Local Storage", - "com.affine.workspaceSubPath.all": "All pages", + "com.affine.workspaceSubPath.all": "All docs", "com.affine.workspaceSubPath.trash": "Trash", - "com.affine.workspaceSubPath.trash.empty-description": "Deleted pages will appear here.", + "com.affine.workspaceSubPath.trash.empty-description": "Deleted docs will appear here.", "com.affine.workspaceType.cloud": "Cloud Workspace", "com.affine.workspaceType.joined": "Joined Workspace", "com.affine.workspaceType.local": "Local Workspace", "com.affine.workspaceType.offline": "Available Offline", "com.affine.write_with_a_blank_page": "Write with a blank page", + "com.affine.new.page-mode": "New Page", "com.affine.yesterday": "Yesterday", "com.affine.error.retry": "Refresh", "com.affine.error.refetch": "Refetch", @@ -1017,11 +1018,11 @@ "com.affine.error.no-page-root.title": "Page content is missing", "core": "core", "dark": "Dark", - "emptyAllPages": "Click on the <1>$t(New Page) button to create your first page.", - "emptyAllPagesClient": "Click on the <1>$t(New Page) button Or press <3>{{shortcut}} to create your first page.", - "emptyFavorite": "Click Add to Favourites and the page will appear here.", - "emptySharedPages": "Shared pages will appear here.", - "emptyTrash": "Click Add to Trash and the page will appear here.", + "emptyAllPages": "Click on the <1>$t(New Doc) button to create your first doc.", + "emptyAllPagesClient": "Click on the <1>$t(New Doc) button Or press <3>{{shortcut}} to create your first doc.", + "emptyFavorite": "Click Add to Favourites and the doc will appear here.", + "emptySharedPages": "Shared docs will appear here.", + "emptyTrash": "Click Add to Trash and the doc will appear here.", "frameless": "Frameless", "invited you to join": "invited you to join", "is a Cloud Workspace": "is a Cloud Workspace.", @@ -1041,19 +1042,19 @@ "com.affine.history.version-history": "Version History", "com.affine.history.view-history-version": "View History Version", "com.affine.history.restore-current-version": "Restore current version", - "com.affine.history.back-to-page": "Back to page", + "com.affine.history.back-to-page": "Back to doc", "com.affine.history.empty-prompt.title": "Empty", "com.affine.history.empty-prompt.description": "This document is such a spring chicken, it hasn't sprouted a single historical sprig yet!", "com.affine.history.confirm-restore-modal.restore": "Restore", - "com.affine.history.confirm-restore-modal.hint": "You are about to restore the current version of the page to the latest version available. This action will overwrite any changes made prior to the latest version.", + "com.affine.history.confirm-restore-modal.hint": "You are about to restore the current version of the doc to the latest version available. This action will overwrite any changes made prior to the latest version.", "com.affine.history.confirm-restore-modal.load-more": "Load More", "com.affine.history.confirm-restore-modal.plan-prompt.title": "HELP INFO", - "com.affine.history.confirm-restore-modal.plan-prompt.limited-title": "LIMITED PAGE HISTORY", + "com.affine.history.confirm-restore-modal.plan-prompt.limited-title": "LIMITED DOC HISTORY", "com.affine.history.confirm-restore-modal.free-plan-prompt.description": "With the workspace creator's Free account, every member can access up to <1>7 days<1> of version history.", "com.affine.history.confirm-restore-modal.pro-plan-prompt.description": "With the workspace creator's Pro account, every member enjoys the privilege of accessing up to <1>30 days<1> of version history.", "com.affine.history.confirm-restore-modal.pro-plan-prompt.upgrade": "Upgrade", "com.affine.share-page.header.present": "Present", - "com.affine.page-operation.add-linked-page": "Add linked page", + "com.affine.page-operation.add-linked-page": "Add linked doc", "com.affine.onboarding.workspace-guide.title": "Start AFFiNE by creating your own Workspace here!", "com.affine.onboarding.workspace-guide.content": "A Workspace is your virtual space to capture, create and plan as just one person or together as a team.", "com.affine.onboarding.workspace-guide.got-it": "Got it!", @@ -1074,7 +1075,7 @@ "com.affine.journal.conflict-show-more": "{{count}} more articles", "com.affine.journal.app-sidebar-title": "Journals", "com.affine.journal.cmdk.append-to-today": "Append to Journal", - "com.affine.editor.reference-not-found": "Linked page not found", + "com.affine.editor.reference-not-found": "Linked doc not found", "com.affine.star-affine.title": "Star Us on GitHub", "com.affine.star-affine.description": "Are you finding our app useful and enjoyable? We'd love your support to keep improving! A great way to help us out is by giving us a star on GitHub. This simple action can make a big difference and helps us continue to deliver the best experience for you.", "com.affine.star-affine.confirm": "Star on GitHub", diff --git a/tests/affine-local/e2e/all-page.spec.ts b/tests/affine-local/e2e/all-page.spec.ts index 38fcf06968..0fe1e4b08d 100644 --- a/tests/affine-local/e2e/all-page.spec.ts +++ b/tests/affine-local/e2e/all-page.spec.ts @@ -214,7 +214,7 @@ test('select two pages and delete', async ({ page }) => { await page.locator('[data-testid="list-toolbar-delete"]').click(); // the confirm dialog should appear - await expect(page.getByText('Delete 2 pages?')).toBeVisible(); + await expect(page.getByText('Delete 2 docs?')).toBeVisible(); await page.getByRole('button', { name: 'Delete' }).click(); diff --git a/tests/affine-local/e2e/quick-search.spec.ts b/tests/affine-local/e2e/quick-search.spec.ts index be0aa0ba98..f8cca8b5b5 100644 --- a/tests/affine-local/e2e/quick-search.spec.ts +++ b/tests/affine-local/e2e/quick-search.spec.ts @@ -135,7 +135,7 @@ test('Create a new page without keyword', async ({ page }) => { await waitForEditorLoad(page); await clickNewPageButton(page); await openQuickSearchByShortcut(page); - const addNewPage = page.locator('[cmdk-item] >> text=New Page'); + const addNewPage = page.locator('[cmdk-item] >> text=New Doc'); await addNewPage.click(); await page.waitForTimeout(300); await assertTitle(page, ''); @@ -147,9 +147,7 @@ test('Create a new page with keyword', async ({ page }) => { await clickNewPageButton(page); await openQuickSearchByShortcut(page); await insertInputText(page, '"test123456"'); - const addNewPage = page.locator( - '[cmdk-item] >> text=New ""test123456"" Page' - ); + const addNewPage = page.locator('[cmdk-item] >> text=New ""test123456"" Doc'); await addNewPage.click(); await page.waitForTimeout(300); await assertTitle(page, '"test123456"'); @@ -171,7 +169,7 @@ test('Create a new page and search this page', async ({ page }) => { // input title and create new page await insertInputText(page, 'test123456'); await page.waitForTimeout(300); - const addNewPage = page.locator('[cmdk-item] >> text=New "test123456" Page'); + const addNewPage = page.locator('[cmdk-item] >> text=New "test123456" Doc'); await addNewPage.click(); await page.waitForTimeout(300); @@ -240,7 +238,7 @@ test('Focus title after creating a new page', async ({ page }) => { await waitForEditorLoad(page); await clickNewPageButton(page); await openQuickSearchByShortcut(page); - const addNewPage = page.locator('[cmdk-item] >> text=New Page'); + const addNewPage = page.locator('[cmdk-item] >> text=New Doc'); await addNewPage.click(); await titleIsFocused(page); }); @@ -272,7 +270,7 @@ test('assert the recent browse pages are on the recent list', async ({ // create second page await openQuickSearchByShortcut(page); - const addNewPage = page.locator('[cmdk-item] >> text=New Page'); + const addNewPage = page.locator('[cmdk-item] >> text=New Doc'); await addNewPage.click(); await waitForEditorLoad(page); { @@ -310,7 +308,7 @@ test('assert the recent browse pages are on the recent list', async ({ await waitForEditorLoad(page); await openQuickSearchByShortcut(page); { - const addNewPage = page.locator('[cmdk-item] >> text=New Page'); + const addNewPage = page.locator('[cmdk-item] >> text=New Doc'); await addNewPage.click(); } await waitForEditorLoad(page);