- All data can be accessed offline
+ {t('Available Offline')}
)}
{workspaceData.published && (
- Published to Web
+
+ {t('Published to Web')}
)}
diff --git a/packages/app/src/components/workspace-setting/PublishPage.tsx b/packages/app/src/components/workspace-setting/PublishPage.tsx
index a30b72bdf..677b8a490 100644
--- a/packages/app/src/components/workspace-setting/PublishPage.tsx
+++ b/packages/app/src/components/workspace-setting/PublishPage.tsx
@@ -1,5 +1,5 @@
import {
- StyledCopyButtonContainer,
+ StyledButtonContainer,
StyledPublishContent,
StyledPublishCopyContainer,
StyledPublishExplanation,
@@ -24,13 +24,13 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
try {
await publishWorkspace(workspace.id.toString(), flag);
} catch (e) {
- toast('Failed to publish workspace');
+ toast(t('Failed to publish workspace'));
}
};
const copyUrl = () => {
navigator.clipboard.writeText(shareUrl);
- toast('Copied url to clipboard');
+ toast(t('Copied link to clipboard'));
};
return (
@@ -43,8 +43,7 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
{workspace.published ? (
<>
- The current workspace has been published to the web, everyone
- can view the contents of this workspace through the link.
+ {t('Published Description')}
@@ -52,11 +51,11 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
{t('Share with link')}
-
+
-
+
>
) : (
@@ -103,7 +102,7 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
<>
- Publishing to web requires AFFiNE Cloud service.
+ {t('Publishing')}
diff --git a/packages/app/src/components/workspace-setting/SyncPage.tsx b/packages/app/src/components/workspace-setting/SyncPage.tsx
index 6969461a3..0632b304c 100644
--- a/packages/app/src/components/workspace-setting/SyncPage.tsx
+++ b/packages/app/src/components/workspace-setting/SyncPage.tsx
@@ -1,9 +1,9 @@
import {
- StyleAsync,
+ StyledButtonContainer,
StyledPublishContent,
StyledPublishExplanation,
StyledWorkspaceName,
- StyledWorkspaceType,
+ StyledEmail,
} from './style';
import { DownloadIcon } from '@blocksuite/icons';
import { Button } from '@/ui/button';
@@ -26,27 +26,38 @@ export const SyncPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
workspaceUnit={workspace}
style={{ marginRight: '12px' }}
/>
- {workspace.name};
- is a Local Workspace.
+ {workspace.name}
+ {t('is a Local Workspace')}
-
- All data is stored on the current device. You can enable AFFiNE
- Cloud for this workspace to keep data in sync with the cloud.
-
-
+
{t('Local Workspace Description')}
+
-
+
>
) : (
<>
-
- {{ workspaceName: workspace.name ?? 'Affine' }}
- is Cloud Workspace. All data will be synchronised and saved to
- the AFFiNE
-
+
+ {workspace.name}
+ {t('is a Cloud Workspace')}
-
+
+
+ All data will be synchronised and saved to the AFFiNE account
+
+ {{
+ email: '{' + workspace.owner?.email + '}.',
+ }}
+
+
+