There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: wrong copywriting in change email modal (#4243)
Qi10f2e9300a43
diff --git a/apps/core/src/components/affine/auth/send-email.tsx b/apps/core/src/components/affine/auth/send-email.tsxindex 79e03629fa..6b3c32dcfa 100644--- a/apps/core/src/components/affine/auth/send-email.tsx+++ b/apps/core/src/components/affine/auth/send-email.tsx@@ -32,6 +32,20 @@ const useEmailTitle = (emailType: AuthPanelProps['emailType']) => {return t['com.affine.settings.email.action']();}};+const useContent = (emailType: AuthPanelProps['emailType'], email: string) => {+ const t = useAFFiNEI18N();++ switch (emailType) {+ case 'setPassword':+ return t['com.affine.auth.set.password.message']();+ case 'changePassword':+ return t['com.affine.auth.set.password.message']();+ case 'changeEmail':+ return t['com.affine.auth.change.email.message']({+ email,+ });+ }+};const useNotificationHint = (emailType: AuthPanelProps['emailType']) => {const t = useAFFiNEI18N();@@ -129,6 +143,7 @@ export const SendEmail = ({const title = useEmailTitle(emailType);const hint = useNotificationHint(emailType);+ const content = useContent(emailType, email);const buttonContent = useButtonContent(emailType);const { loading, sendEmail } = useSendEmail(emailType);@@ -151,7 +166,7 @@ export const SendEmail = ({title={t['com.affine.brand.affineCloud']()}subTitle={title}/>- <AuthContent>{t['com.affine.auth.reset.password.message']()}</AuthContent>+ <AuthContent>{content}</AuthContent><WrappermarginTop={30}diff --git a/packages/i18n/src/resources/en.json b/packages/i18n/src/resources/en.jsonindex 7bd1729204..1748eb08b6 100644--- a/packages/i18n/src/resources/en.json+++ b/packages/i18n/src/resources/en.json@@ -95,6 +95,7 @@"com.affine.auth.set.email.save": "Save Email","com.affine.auth.set.password": "Set password","com.affine.auth.set.password.message": "Please set a password of 8-20 characters with both letters and numbers to continue signing up with ",+ "com.affine.auth.change.email.message": "Your current email is {{email}}. We’ll send a temporary verification link to this email.","com.affine.auth.set.password.page.success": "Password set successful","com.affine.auth.set.password.page.title": "Set your AFFiNE Cloud password","com.affine.auth.set.password.placeholder": "Set a password at least 8 letters long",