chore: improve password error message (#6255)

chore: improve error message

chore: add password minlength & maxlength i18n

chore: check max length

fix: i18n variables

feat: add CredentialsRequirementType
This commit is contained in:
fundon
2024-03-26 07:15:06 +00:00
parent b8e6d7d6cb
commit 8ee9f6ec05
25 changed files with 354 additions and 82 deletions

View File

@@ -423,7 +423,7 @@
"com.affine.auth.open.affine.download-app": "Download App",
"com.affine.auth.open.affine.prompt": "Opening <1>AFFiNE</1> app now",
"com.affine.auth.open.affine.try-again": "Try again",
"com.affine.auth.page.sent.email.subtitle": "Please set a password of 8-20 characters with both letters and numbers to continue signing up with ",
"com.affine.auth.page.sent.email.subtitle": "Please set a password of {{min}}-{{max}} characters with both letters and numbers to continue signing up with ",
"com.affine.auth.page.sent.email.title": "Welcome to AFFiNE Cloud, you are almost there!",
"com.affine.auth.password": "Password",
"com.affine.auth.password.error": "Invalid password",
@@ -444,10 +444,12 @@
"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.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.set.password.message": "Please set a password of {{min}}-{{max}} characters with both letters and numbers to continue signing up with ",
"com.affine.auth.set.password.message.minlength": "Minimum {{min}} characters",
"com.affine.auth.set.password.message.maxlength": "Maximum {{max}} characters",
"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",
"com.affine.auth.set.password.placeholder": "Set a password at least {{min}} letters long",
"com.affine.auth.set.password.placeholder.confirm": "Confirm password",
"com.affine.auth.set.password.save": "Save Password",
"com.affine.auth.sign-out.confirm-modal.cancel": "Cancel",

View File

@@ -409,7 +409,7 @@
"com.affine.auth.open.affine.download-app": "下载应用",
"com.affine.auth.open.affine.prompt": "正在打开 <1>AFFiNE</1> 应用\n",
"com.affine.auth.open.affine.try-again": "重试",
"com.affine.auth.page.sent.email.subtitle": "请输入一个长度在8-20个字符之间,同时包含字母和数字的密码以继续注册",
"com.affine.auth.page.sent.email.subtitle": "请输入一个长度在 {{min}}-{{max}} 个字符之间,同时包含字母和数字的密码以继续注册",
"com.affine.auth.page.sent.email.title": "欢迎来到 AFFiNE Cloud即将完成",
"com.affine.auth.password": "密码",
"com.affine.auth.password.error": "无效密码",
@@ -429,10 +429,12 @@
"com.affine.auth.sent.set.password.success.message": "您的密码已保存!您可以使用邮箱和密码登录 AFFiNE Cloud",
"com.affine.auth.set.email.save": "保存电子邮件",
"com.affine.auth.set.password": "设置密码",
"com.affine.auth.set.password.message": "请输入一个长度在8-20个字符之间,同时包含字母和数字的密码以继续注册",
"com.affine.auth.set.password.message": "请输入一个长度在 {{min}}-{{max}} 个字符之间,同时包含字母和数字的密码以继续注册",
"com.affine.auth.set.password.message.minlength": "至少 {{min}} 个字符",
"com.affine.auth.set.password.message.maxlength": "至多 {{max}} 个字符",
"com.affine.auth.set.password.page.success": "密码设置成功",
"com.affine.auth.set.password.page.title": "设置您的 AFFiNE Cloud 密码",
"com.affine.auth.set.password.placeholder": "密码长度至少需要8个字符",
"com.affine.auth.set.password.placeholder": "密码长度至少需要 {{min}} 个字符",
"com.affine.auth.set.password.placeholder.confirm": "确认密码",
"com.affine.auth.set.password.save": "保存密码",
"com.affine.auth.sign-out.confirm-modal.cancel": "取消",

View File

@@ -329,7 +329,7 @@
"com.affine.auth.has.signed": "已登入!",
"com.affine.auth.later": "之後",
"com.affine.auth.open.affine": "打開 AFFiNE",
"com.affine.auth.page.sent.email.subtitle": "請設定由8-20位字母和數字組成的密碼",
"com.affine.auth.page.sent.email.subtitle": "請設定由 {{min}}-{{max}} 位字母和數字組成的密碼",
"com.affine.auth.page.sent.email.title": "歡迎來到 AFFiNE Cloud即將完成",
"com.affine.auth.password": "密碼",
"com.affine.auth.password.error": "無效的密碼",
@@ -345,10 +345,12 @@
"com.affine.auth.sent.set.password.hint": "設定密碼連結已發送。",
"com.affine.auth.set.email.save": "保存電子郵件地址",
"com.affine.auth.set.password": "設定密碼",
"com.affine.auth.set.password.message": "請設定由8-20位字母和數字組成的密碼",
"com.affine.auth.set.password.message": "請設定由 {{min}}-{{max}} 位字母和數字組成的密碼",
"com.affine.auth.set.password.message.minlength": "至少 {{min}} 位字符",
"com.affine.auth.set.password.message.maxlength": "至多 {{max}} 位字符",
"com.affine.auth.set.password.page.success": "成功設定密碼",
"com.affine.auth.set.password.page.title": "重定您的 AFFiNE Cloud 密碼",
"com.affine.auth.set.password.placeholder": "設定至少包含 8 位字符的密碼",
"com.affine.auth.set.password.placeholder": "設定至少包含 {{min}} 位字符的密碼",
"com.affine.auth.set.password.placeholder.confirm": "確認密碼",
"com.affine.auth.set.password.save": "保存密碼",
"com.affine.auth.sign.auth.code.error.hint": "驗證碼錯誤,請重試",