From 7efc87b6d34356a6cb8d85baf8d02af778adbf3f Mon Sep 17 00:00:00 2001 From: EYHN Date: Fri, 9 Aug 2024 11:50:52 +0800 Subject: [PATCH] chore(core): adjust migration text (#7802) --- .../views/sections/migration-favorites/index.tsx | 10 ++++++++-- packages/frontend/i18n/src/resources/en.json | 10 +++++----- packages/frontend/i18n/src/resources/zh-Hans.json | 10 +++++----- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/packages/frontend/core/src/modules/explorer/views/sections/migration-favorites/index.tsx b/packages/frontend/core/src/modules/explorer/views/sections/migration-favorites/index.tsx index 3babdb8631..bb81d22d73 100644 --- a/packages/frontend/core/src/modules/explorer/views/sections/migration-favorites/index.tsx +++ b/packages/frontend/core/src/modules/explorer/views/sections/migration-favorites/index.tsx @@ -66,8 +66,14 @@ export const ExplorerMigrationFavorites = () => { const handleClickHelp = useCallback(() => { openConfirmModal({ title: t['com.affine.rootAppSidebar.migration-data.help'](), - description: - t['com.affine.rootAppSidebar.migration-data.help.description'](), + description: ( + , + }} + /> + ), confirmText: t['com.affine.rootAppSidebar.migration-data.help.confirm'](), confirmButtonOptions: { variant: 'primary', diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json index abce74b261..1544ab4134 100644 --- a/packages/frontend/i18n/src/resources/en.json +++ b/packages/frontend/i18n/src/resources/en.json @@ -1135,17 +1135,17 @@ "com.affine.rootAppSidebar.explorer.organize-section-add-tooltip": "New Folder", "com.affine.rootAppSidebar.explorer.tag-add-tooltip": "New Doc", "com.affine.rootAppSidebar.explorer.tag-section-add-tooltip": "New Tag", - "com.affine.rootAppSidebar.favorites": "Favourites", + "com.affine.rootAppSidebar.favorites": "Favorites", "com.affine.rootAppSidebar.favorites.empty": "No Favorites", "com.affine.rootAppSidebar.migration-data": "Migration data", - "com.affine.rootAppSidebar.migration-data.clean-all": "Delete All Old Data", + "com.affine.rootAppSidebar.migration-data.clean-all": "Empty the old favorites", "com.affine.rootAppSidebar.migration-data.clean-all.cancel": "Cancel", "com.affine.rootAppSidebar.migration-data.clean-all.confirm": "OK", - "com.affine.rootAppSidebar.migration-data.clean-all.description": "This action will empty and delete the entire discontinued Favorites section. Don't worry, all your documents will not be affected - this only removes the old Favorites from the sidebar to place the new one. In the meantime, please verify that you've moved all your frequently accessed documents to the spanking new personal Favorites section first.", + "com.affine.rootAppSidebar.migration-data.clean-all.description": "This action deletes the old Favorites section. b>Your documents are safe, ensure you've moved your frequently accessed documents to the new personal Favorites section.", "com.affine.rootAppSidebar.migration-data.help": "The old \"Favorites\" will be replaced", - "com.affine.rootAppSidebar.migration-data.help.clean-all": "Delete all the old data", + "com.affine.rootAppSidebar.migration-data.help.clean-all": "Empty the old favorites", "com.affine.rootAppSidebar.migration-data.help.confirm": "OK", - "com.affine.rootAppSidebar.migration-data.help.description": "Your documents are safe, yet you may need to re-pin your most-used ones. Previously, 'Favorites' were shared across the workspace. We've improved on this - now each person has a personal 'Favorites' section for their top documents, collections, and folders. We advise migrating your data.\nThe old 'Favorites' will disappear once emptied. Drag your items with ease from the old shared 'Favorites' into your new personal section, or opt to delete all old favorites by simply clicking 'Delete all the old data' now.", + "com.affine.rootAppSidebar.migration-data.help.description": "Your documents are safe, but you'll need to re-pin your most-used ones. \"Favorites\" are now personal. Move items from the old shared section to your new personal section or remove the old one by clicking \"Empty the old favorites\" now.", "com.affine.rootAppSidebar.organize": "Organize", "com.affine.rootAppSidebar.organize.delete": "Delete", "com.affine.rootAppSidebar.organize.delete-from-folder": "Remove from folder", diff --git a/packages/frontend/i18n/src/resources/zh-Hans.json b/packages/frontend/i18n/src/resources/zh-Hans.json index 92a0fd6778..b94f18ccff 100644 --- a/packages/frontend/i18n/src/resources/zh-Hans.json +++ b/packages/frontend/i18n/src/resources/zh-Hans.json @@ -1139,14 +1139,14 @@ "com.affine.rootAppSidebar.favorites": "收藏夹", "com.affine.rootAppSidebar.favorites.empty": "您可以将文档添加到您的收藏", "com.affine.rootAppSidebar.migration-data": "迁移数据", - "com.affine.rootAppSidebar.migration-data.clean-all": "删除所有旧数据", + "com.affine.rootAppSidebar.migration-data.clean-all": "清空旧收藏夹", "com.affine.rootAppSidebar.migration-data.clean-all.cancel": "取消", "com.affine.rootAppSidebar.migration-data.clean-all.confirm": "好的", - "com.affine.rootAppSidebar.migration-data.clean-all.description": "此操作将清空并删除整个已停用的收藏夹部分。别担心,您的所有文档都不会受到影响 - 这只会从侧边栏中删除旧的收藏夹并放置新的收藏夹。与此同时,请先验证您是否已将所有经常访问的文档移动到全新的个人收藏夹部分。", - "com.affine.rootAppSidebar.migration-data.help": "旧的“收藏夹”将被替换", - "com.affine.rootAppSidebar.migration-data.help.clean-all": "删除所有旧数据", + "com.affine.rootAppSidebar.migration-data.clean-all.description": "此操作将删除旧的收藏夹部分。b>您的文档是安全的,请确保您已将经常访问的文档移动到新的个人收藏夹。", + "com.affine.rootAppSidebar.migration-data.help": "“收藏夹”将被改为个人收藏夹", + "com.affine.rootAppSidebar.migration-data.help.clean-all": "清空旧收藏夹", "com.affine.rootAppSidebar.migration-data.help.confirm": "好的", - "com.affine.rootAppSidebar.migration-data.help.description": "您的文档是安全的,但您可能需要重新固定最常用的文档。以前,“收藏夹”是在整个工作区共享的。我们对此进行了改进 - 现在每个人都有一个个人“收藏夹”部分,用于存放他们最常用的文档、精选和文件夹。我们建议您迁移数据。\n旧的“收藏”一旦清空就会消失。轻松地将您的项目从旧的共享“收藏夹”拖到新的个人部分,或者选择删除所有旧收藏夹,只需单击“删除所有旧数据”即可。", + "com.affine.rootAppSidebar.migration-data.help.description": "您的文档是安全的,但您需要重新收藏最常用的文档。“收藏夹”现在属于个人。现在将文档从旧收藏夹移动到新的个人收藏夹,或通过单击“清空旧收藏夹”删除旧收藏夹。", "com.affine.rootAppSidebar.organize": "组织", "com.affine.rootAppSidebar.organize.delete": "删除", "com.affine.rootAppSidebar.organize.delete-from-folder": "从文件夹移出",