Skip to content

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.

fix(core): missing i18n and button margin (#11568)

forehalo4e56a8447b2e
diff --git a/packages/frontend/core/src/desktop/dialogs/verify-email/index.tsx b/packages/frontend/core/src/desktop/dialogs/verify-email/index.tsx
index 0ff4933c4f..a95db4456c 100644
--- a/packages/frontend/core/src/desktop/dialogs/verify-email/index.tsx
+++ b/packages/frontend/core/src/desktop/dialogs/verify-email/index.tsx
@@ -117,19 +117,19 @@ export const VerifyEmailDialog = ({
disabled={true}
value={email}
/>
+ <Button
+ variant="primary"
+ size="extraLarge"
+ style={{ width: '100%' }}
+ disabled={hasSentEmail}
+ loading={loading}
+ onClick={onSendEmail}
+ >
+ {hasSentEmail
+ ? t['com.affine.auth.sent']()
+ : t['com.affine.auth.send.verify.email.hint']()}
+ </Button>
</AuthContent>
- <Button
- variant="primary"
- size="extraLarge"
- style={{ width: '100%' }}
- disabled={hasSentEmail}
- loading={loading}
- onClick={onSendEmail}
- >
- {hasSentEmail
- ? t['com.affine.auth.sent']()
- : t['com.affine.auth.send.verify.email.hint']()}
- </Button>
</Modal>
);
};
diff --git a/packages/frontend/i18n/src/i18n.gen.ts b/packages/frontend/i18n/src/i18n.gen.ts
index 5f0c6e3959..6151ef2971 100644
--- a/packages/frontend/i18n/src/i18n.gen.ts
+++ b/packages/frontend/i18n/src/i18n.gen.ts
@@ -1122,6 +1122,10 @@ export function useAFFiNEI18N(): {
["com.affine.auth.sign.auth.code.resend.hint"](options: {
readonly second: string;
}): string;
+ /**
+ * `Sent`
+ */
+ ["com.affine.auth.sent"](): string;
/**
* `The verification link failed to be sent, please try again later.`
*/
@@ -1135,7 +1139,7 @@ export function useAFFiNEI18N(): {
*/
["com.affine.auth.sent.change.password.hint"](): string;
/**
- * `Your password has upgraded! You can sign in AFFiNE Cloud with new password!`
+ * `Your password has been updated! You can sign in AFFiNE Cloud with new password!`
*/
["com.affine.auth.sent.reset.password.success.message"](): string;
/**
diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json
index 00d4c40f02..6da608ef2d 100644
--- a/packages/frontend/i18n/src/resources/en.json
+++ b/packages/frontend/i18n/src/resources/en.json
@@ -272,10 +272,11 @@
"com.affine.auth.sign.auth.code.continue": "Continue with code",
"com.affine.auth.sign.auth.code.resend": "Resend code",
"com.affine.auth.sign.auth.code.resend.hint": "Resend in {{second}}s",
+ "com.affine.auth.sent": "Sent",
"com.affine.auth.sent.change.email.fail": "The verification link failed to be sent, please try again later.",
"com.affine.auth.sent.change.email.hint": "Verification link has been sent.",
"com.affine.auth.sent.change.password.hint": "Reset password link has been sent.",
- "com.affine.auth.sent.reset.password.success.message": "Your password has upgraded! You can sign in AFFiNE Cloud with new password!",
+ "com.affine.auth.sent.reset.password.success.message": "Your password has been updated! You can sign in AFFiNE Cloud with new password!",
"com.affine.auth.sent.set.password.hint": "Set password link has been sent.",
"com.affine.auth.sent.set.password.success.message": "Your password has saved! You can sign in AFFiNE Cloud with email and password!",
"com.affine.auth.sent.verify.email.hint": "Verification link has been sent.",