
- 更新邮箱登录相关功能,新增邮箱验证码获取和登录API端点。 - 添加AccountModel以管理用户认证信息,支持会话票据的存储和更新。 - 实现密码恢复功能,支持通过邮箱获取验证码和重置密码。 - 增加本地化支持,更新相关字符串以适应新功能。 - 引入ValidationHelper以验证邮箱和密码格式,确保用户输入的有效性。 - 更新视图以支持邮箱登录和密码恢复的用户交互。
79 lines
2.9 KiB
Plaintext
79 lines
2.9 KiB
Plaintext
/*
|
|
Localizable.strings
|
|
yana
|
|
|
|
Created on 2024.
|
|
英文本地化文件
|
|
*/
|
|
|
|
// MARK: - 登录界面
|
|
"login.id_login" = "ID Login";
|
|
"login.email_login" = "Email Login";
|
|
"login.app_title" = "E-PARTI";
|
|
"login.agreement_policy" = "Agree to the \"User Service Agreement\" and \"Privacy Policy\"";
|
|
"login.agreement" = "User Service Agreement";
|
|
"login.policy" = "Privacy Policy";
|
|
|
|
// MARK: - 通用按钮
|
|
"common.login" = "Login";
|
|
"common.register" = "Register";
|
|
"common.cancel" = "Cancel";
|
|
"common.confirm" = "Confirm";
|
|
"common.ok" = "OK";
|
|
|
|
// MARK: - 错误信息
|
|
"error.network" = "Network Error";
|
|
"error.invalid_input" = "Invalid Input";
|
|
"error.login_failed" = "Login Failed";
|
|
|
|
// MARK: - 占位符文本
|
|
"placeholder.email" = "Enter your email";
|
|
"placeholder.password" = "Enter your password";
|
|
"placeholder.username" = "Enter your username";
|
|
"placeholder.enter_id" = "Please enter ID";
|
|
"placeholder.enter_password" = "Please enter password";
|
|
|
|
// MARK: - ID登录页面
|
|
"id_login.title" = "ID Login";
|
|
"id_login.forgot_password" = "Forgot Password?";
|
|
"id_login.login_button" = "Login";
|
|
"id_login.logging_in" = "Logging in...";
|
|
|
|
// MARK: - 邮箱登录页面
|
|
"email_login.title" = "Email Login";
|
|
"email_login.email_required" = "Please enter email";
|
|
"email_login.invalid_email" = "Please enter a valid email address";
|
|
"email_login.fields_required" = "Please enter email and verification code";
|
|
"email_login.get_code" = "Get";
|
|
"email_login.resend_code" = "Resend";
|
|
"email_login.code_sent" = "Verification code sent";
|
|
"email_login.login_button" = "Login";
|
|
"email_login.logging_in" = "Logging in...";
|
|
"placeholder.enter_email" = "Please enter email";
|
|
"placeholder.enter_verification_code" = "Please enter verification code";
|
|
|
|
// MARK: - 验证和错误信息
|
|
"validation.id_required" = "Please enter your ID";
|
|
"validation.password_required" = "Please enter your password";
|
|
"error.encryption_failed" = "Encryption failed, please try again";
|
|
"error.login_failed" = "Login failed, please check your credentials";
|
|
|
|
// MARK: - 密码恢复页面
|
|
"recover_password.title" = "Recover Password";
|
|
"recover_password.placeholder_email" = "Please enter email";
|
|
"recover_password.placeholder_verification_code" = "Please enter verification code";
|
|
"recover_password.placeholder_new_password" = "6-16 Digits + English Letters";
|
|
"recover_password.get_code" = "Get";
|
|
"recover_password.confirm_button" = "Confirm";
|
|
"recover_password.email_required" = "Please enter email";
|
|
"recover_password.invalid_email" = "Please enter a valid email address";
|
|
"recover_password.fields_required" = "Please fill in all fields";
|
|
"recover_password.invalid_password" = "Password must be 6-16 characters with digits and letters";
|
|
"recover_password.code_send_failed" = "Failed to send verification code";
|
|
"recover_password.reset_failed" = "Failed to reset password";
|
|
"recover_password.reset_success" = "Password reset successfully";
|
|
"recover_password.resetting" = "Resetting...";
|
|
|
|
// MARK: - 主页
|
|
"home.title" = "Enjoy your Life Time";
|