chore: update setting text (#3000)

This commit is contained in:
JimmFly
2023-07-05 01:40:58 +08:00
committed by GitHub
parent ec87864c34
commit c6ccd6d5de
9 changed files with 272 additions and 50 deletions

View File

@@ -23,10 +23,12 @@ export const DeleteLeaveWorkspace: FC<{
<SettingRow
name={
<span style={{ color: 'var(--affine-error-color)' }}>
{isOwner ? t['Delete Workspace']() : t['Leave Workspace']()}
{isOwner
? t['com.affine.settings.workspace.remove']()
: t['Leave Workspace']()}
</span>
}
desc={t['None yet']()}
desc={t['com.affine.settings.workspace.remove.message']()}
style={{ cursor: 'pointer' }}
onClick={() => {
setShowDelete(true);

View File

@@ -23,7 +23,7 @@ export const AboutAffine = () => {
<>
<SettingHeader
title={t['About AFFiNE']()}
subtitle={t['Information about AFFiNE']()}
subtitle={t['com.affine.settings.about.message']()}
data-testid="about-title"
/>
{runtimeConfig.enableNewSettingUnstableApi && environment.isDesktop ? (
@@ -34,9 +34,7 @@ export const AboutAffine = () => {
></SettingRow>
<SettingRow
name={t['Check for updates automatically']()}
desc={t[
'If enabled, it will automatically check for new versions at regular intervals.'
]()}
desc={t['com.affine.settings.about.update.check.message']()}
>
<Switch
checked={appSettings.autoCheckUpdate}
@@ -45,9 +43,7 @@ export const AboutAffine = () => {
</SettingRow>
<SettingRow
name={t['Download updates automatically']()}
desc={t[
'If enabled, new versions will be automatically downloaded to the current device.'
]()}
desc={t['com.affine.settings.about.update.download.message']()}
>
<Switch
checked={appSettings.autoCheckUpdate}

View File

@@ -145,8 +145,8 @@ export const AppearanceSettings = () => {
{environment.isDesktop ? (
<SettingWrapper title={t['Sidebar']()}>
<SettingRow
name={t['Noise background on the sidebar']()}
desc={t['Use background noise effect on the sidebar.']()}
name={t['com.affine.settings.appearance.sidebar.noise']()}
desc={t['com.affine.settings.appearance.sidebar.noise.message']()}
>
<Switch
checked={appSettings.enableNoisyBackground}
@@ -156,8 +156,10 @@ export const AppearanceSettings = () => {
/>
</SettingRow>
<SettingRow
name={t['Translucent UI on the sidebar']()}
desc={t['Use transparency effect on the sidebar.']()}
name={t['com.affine.settings.appearance.sidebar.translucent']()}
desc={t[
'com.affine.settings.appearance.sidebar.translucent.message'
]()}
>
<Switch
checked={appSettings.enableBlurBackground}