chore: replace ambiguous "page" with "doc" (#5761)

close TOV-532
This commit is contained in:
JimmFly
2024-02-21 12:47:17 +00:00
parent 85be45a79c
commit c353b0d30f
8 changed files with 88 additions and 89 deletions

View File

@@ -29,7 +29,7 @@ export const CreateNewPagePopup = ({
}}
>
<BlockCard
title={t['New Page']()}
title={t['com.affine.new.page-mode']()}
desc={t['com.affine.write_with_a_blank_page']()}
right={<PageIcon width={20} height={20} />}
onClick={createNewPage}

View File

@@ -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({

View File

@@ -26,7 +26,7 @@ export const EmptyPageList = ({
if (type === 'all') {
const createNewPageButton = (
<button className={styles.emptyDescButton} onClick={onCreatePage}>
New Page
{t['New Page']()}
</button>
);
if (environment.isDesktop) {