feat(login): add phone and Google login page with i18n
Add complete login flow with phone verification and country picker. Add login-related translations for en-US, zh-CN and th-TH locales. Add country calling codes constants and selection utility function. Register Vant UI component type definitions for TypeScript. Update development environment authentication token.
This commit is contained in:
@@ -7,6 +7,34 @@ export default {
|
||||
errors: {
|
||||
network: "Network error. Please try again later.",
|
||||
},
|
||||
login: {
|
||||
method: {
|
||||
google: "Sign in with Google",
|
||||
phone: "Phone + Code",
|
||||
},
|
||||
fields: {
|
||||
country: "Country/Code",
|
||||
phone: "Phone",
|
||||
code: "Code",
|
||||
},
|
||||
placeholders: {
|
||||
selectCountry: "Select country code",
|
||||
phone: "Enter phone number",
|
||||
code: "Enter verification code",
|
||||
},
|
||||
dividersText: "Or",
|
||||
actions: {
|
||||
sendCode: "Send code",
|
||||
login: "Sign in",
|
||||
},
|
||||
errors: {
|
||||
missingPhone: "Please enter your phone number",
|
||||
missingCode: "Please enter the verification code",
|
||||
},
|
||||
tips: {
|
||||
smsApiMissing: "SMS sending API is not connected",
|
||||
},
|
||||
},
|
||||
state: {
|
||||
empty: "No data",
|
||||
loading: "Loading...",
|
||||
|
||||
@@ -7,6 +7,34 @@ export default {
|
||||
errors: {
|
||||
network: "เครือข่ายผิดพลาด โปรดลองอีกครั้งในภายหลัง",
|
||||
},
|
||||
login: {
|
||||
method: {
|
||||
google: "เข้าสู่ระบบด้วย Google",
|
||||
phone: "โทรศัพท์ + รหัส",
|
||||
},
|
||||
fields: {
|
||||
country: "ประเทศ/รหัส",
|
||||
phone: "โทรศัพท์",
|
||||
code: "รหัสยืนยัน",
|
||||
},
|
||||
placeholders: {
|
||||
selectCountry: "เลือกรหัสประเทศ",
|
||||
phone: "กรอกหมายเลขโทรศัพท์",
|
||||
code: "กรอกรหัสยืนยัน",
|
||||
},
|
||||
dividersText: "หรือ",
|
||||
actions: {
|
||||
sendCode: "ส่งรหัส",
|
||||
login: "เข้าสู่ระบบ",
|
||||
},
|
||||
errors: {
|
||||
missingPhone: "กรอกหมายเลขโทรศัพท์",
|
||||
missingCode: "กรอกรหัสยืนยัน",
|
||||
},
|
||||
tips: {
|
||||
smsApiMissing: "ยังไม่ได้เชื่อมต่อ API สำหรับส่ง SMS",
|
||||
},
|
||||
},
|
||||
state: {
|
||||
empty: "ไม่มีข้อมูล",
|
||||
loading: "กำลังโหลด...",
|
||||
|
||||
@@ -7,6 +7,34 @@ export default {
|
||||
errors: {
|
||||
network: "网络异常,请稍后重试",
|
||||
},
|
||||
login: {
|
||||
method: {
|
||||
google: "谷歌账号登录",
|
||||
phone: "手机号验证码登录",
|
||||
},
|
||||
fields: {
|
||||
country: "国家/区号",
|
||||
phone: "手机号",
|
||||
code: "验证码",
|
||||
},
|
||||
placeholders: {
|
||||
selectCountry: "请选择国家/区号",
|
||||
phone: "请输入手机号",
|
||||
code: "请输入验证码",
|
||||
},
|
||||
dividersText: "或",
|
||||
actions: {
|
||||
sendCode: "获取验证码",
|
||||
login: "登录",
|
||||
},
|
||||
errors: {
|
||||
missingPhone: "请输入手机号",
|
||||
missingCode: "请输入验证码",
|
||||
},
|
||||
tips: {
|
||||
smsApiMissing: "验证码发送接口未接入",
|
||||
},
|
||||
},
|
||||
state: {
|
||||
empty: "暂无数据",
|
||||
loading: "加载中...",
|
||||
|
||||
Reference in New Issue
Block a user