chore(core): better doc action error message (#10288)

This commit is contained in:
forehalo
2025-02-19 10:38:38 +00:00
parent 54b7515167
commit 02f567f2c0
13 changed files with 74 additions and 72 deletions
@@ -1,26 +1,26 @@
{
"ar": 87,
"ar": 88,
"ca": 4,
"da": 5,
"de": 87,
"el-GR": 87,
"de": 88,
"el-GR": 88,
"en": 100,
"es-AR": 87,
"es-AR": 88,
"es-CL": 89,
"es": 87,
"fa": 87,
"fr": 87,
"es": 88,
"fa": 88,
"fr": 88,
"hi": 2,
"it-IT": 87,
"it-IT": 88,
"it": 1,
"ja": 87,
"ja": 88,
"ko": 63,
"pl": 87,
"pt-BR": 87,
"ru": 87,
"sv-SE": 87,
"uk": 87,
"pl": 88,
"pt-BR": 88,
"ru": 88,
"sv-SE": 88,
"uk": 88,
"ur": 2,
"zh-Hans": 87,
"zh-Hant": 87
"zh-Hans": 88,
"zh-Hant": 88
}
+7 -15
View File
@@ -5708,19 +5708,19 @@ export function useAFFiNEI18N(): {
*/
["com.affine.settings.workspace.affine-ai.description"](): string;
/**
* `Achieved workspaces`
* `Archived workspaces`
*/
["com.affine.settings.workspace.backup"](): string;
/**
* `Management in local workspace backup files`
* `Manage archived local workspace files`
*/
["com.affine.settings.workspace.backup.subtitle"](): string;
/**
* `No backup files found`
* `No archived workspace files found`
*/
["com.affine.settings.workspace.backup.empty"](): string;
/**
* `Delete backup workspace`
* `Delete archived workspace`
*/
["com.affine.settings.workspace.backup.delete"](): string;
/**
@@ -5790,14 +5790,6 @@ export function useAFFiNEI18N(): {
* `Shared doc`
*/
["com.affine.share-menu.SharedPage"](): string;
/**
* `Please try again later.`
*/
["com.affine.share-menu.confirm-modify-mode.notification.fail.message"](): string;
/**
* `Failed to modify`
*/
["com.affine.share-menu.confirm-modify-mode.notification.fail.title"](): string;
/**
* `Copy Link`
*/
@@ -7199,11 +7191,11 @@ export function useAFFiNEI18N(): {
spaceId: string;
}>): string;
/**
* `You do not have permission to access doc {{docId}} under Space {{spaceId}}.`
* `You do not have permission to perform {{action}} action on doc {{docId}}.`
*/
["error.DOC_ACCESS_DENIED"](options: Readonly<{
["error.DOC_ACTION_DENIED"](options: Readonly<{
action: string;
docId: string;
spaceId: string;
}>): string;
/**
* `Your client with version {{version}} is rejected by remote sync server. Please upgrade to {{serverVersion}}.`
+1 -3
View File
@@ -1446,8 +1446,6 @@
"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 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.copy": "Copy Link",
"com.affine.share-menu.copy-private-link": "Copy private link",
"com.affine.share-menu.copy.block": "Copy Link to Selected Block",
@@ -1783,7 +1781,7 @@
"error.SPACE_OWNER_NOT_FOUND": "Owner of Space {{spaceId}} not found.",
"error.SPACE_SHOULD_HAVE_ONLY_ONE_OWNER": "Space should have only one owner.",
"error.DOC_NOT_FOUND": "Doc {{docId}} under Space {{spaceId}} not found.",
"error.DOC_ACCESS_DENIED": "You do not have permission to access doc {{docId}} under Space {{spaceId}}.",
"error.DOC_ACTION_DENIED": "You do not have permission to perform {{action}} action on doc {{docId}}.",
"error.VERSION_REJECTED": "Your client with version {{version}} is rejected by remote sync server. Please upgrade to {{serverVersion}}.",
"error.INVALID_HISTORY_TIMESTAMP": "Invalid doc history timestamp provided.",
"error.DOC_HISTORY_NOT_FOUND": "History of {{docId}} at {{timestamp}} under Space {{spaceId}}.",