chore: update setting text (#3000)

This commit is contained in:
JimmFly
2023-07-05 01:40:58 +08:00
committed by Alex Yang
parent d94ad8caac
commit b45c8b582e
9 changed files with 272 additions and 50 deletions
@@ -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}
@@ -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}