From e93eabb073bd2f3f417e57b8b83d2ec0a6c856ef Mon Sep 17 00:00:00 2001 From: Lewis_yan Date: Thu, 9 Apr 2026 08:56:49 +0800 Subject: [PATCH] fix(i18n): correct login i18n structure with proper message.pages.login nesting The login i18n files were exporting flat structures that didn't match the expected key paths like message.pages.login.loginTitle. Wrapped content in message.pages.login.* structure like other i18n modules. --- web/src/i18n/pages/login/en.ts | 76 +++++++++++++++++-------------- web/src/i18n/pages/login/zh-cn.ts | 74 ++++++++++++++++-------------- web/src/i18n/pages/login/zh-tw.ts | 74 ++++++++++++++++-------------- 3 files changed, 121 insertions(+), 103 deletions(-) diff --git a/web/src/i18n/pages/login/en.ts b/web/src/i18n/pages/login/en.ts index 064c232..054a3df 100644 --- a/web/src/i18n/pages/login/en.ts +++ b/web/src/i18n/pages/login/en.ts @@ -1,38 +1,44 @@ // 定义内容 export default { - label: { - one1: 'User name login', - two2: 'Mobile number', - two3: 'QR code sign-in', - changePwd: 'Change The Password', - }, - link: { - one3: 'Third party login', - two4: 'Links', - }, - account: { - accountPlaceholder1: 'Please enter your login account', - accountPlaceholder2: 'Please enter your login password', - accountPlaceholder3: 'Please enter the verification code', - accountPlaceholder4: 'Please enter new password', - accountPlaceholder5: 'Please enter new password again', - accountBtnText: 'Sign in', - }, - mobile: { - placeholder1: 'Please input mobile phone number', - placeholder2: 'Please enter the verification code', - codeText: 'Get code', - btnText: 'Sign in', - msgText: - 'Warm tip: it is recommended to use Google, Microsoft edge, version 79.0.1072.62 and above browsers, and 360 browser, please use speed mode', - }, - scan: { - text: 'Open the mobile phone to scan and quickly log in / register', - }, - signInText: 'welcome back!', - loginTitle: 'Procurement Quotation System - Buyer Portal', - supplierTitle: 'Procurement Quotation System - Supplier Portal', - firstLoginTip: 'Please change your password on first login', - welcomeLogin: 'Welcome', - copyright: 'Copyright © AVC All Rights Reserved', + message: { + pages: { + login: { + label: { + one1: 'User name login', + two2: 'Mobile number', + two3: 'QR code sign-in', + changePwd: 'Change The Password', + }, + link: { + one3: 'Third party login', + two4: 'Links', + }, + account: { + accountPlaceholder1: 'Please enter your login account', + accountPlaceholder2: 'Please enter your login password', + accountPlaceholder3: 'Please enter the verification code', + accountPlaceholder4: 'Please enter new password', + accountPlaceholder5: 'Please enter new password again', + accountBtnText: 'Sign in', + }, + mobile: { + placeholder1: 'Please input mobile phone number', + placeholder2: 'Please enter the verification code', + codeText: 'Get code', + btnText: 'Sign in', + msgText: + 'Warm tip: it is recommended to use Google, Microsoft edge, version 79.0.1072.62 and above browsers, and 360 browser, please use speed mode', + }, + scan: { + text: 'Open the mobile phone to scan and quickly log in / register', + }, + signInText: 'welcome back!', + loginTitle: 'Procurement Quotation System - Buyer Portal', + supplierTitle: 'Procurement Quotation System - Supplier Portal', + firstLoginTip: 'Please change your password on first login', + welcomeLogin: 'Welcome', + copyright: 'Copyright © AVC All Rights Reserved', + }, + }, + }, }; diff --git a/web/src/i18n/pages/login/zh-cn.ts b/web/src/i18n/pages/login/zh-cn.ts index 7d2a697..bc723a8 100644 --- a/web/src/i18n/pages/login/zh-cn.ts +++ b/web/src/i18n/pages/login/zh-cn.ts @@ -1,37 +1,43 @@ // 定义内容 export default { - label: { - one1: '账号密码登录', - two2: '手机号登录', - two3: '二维码登录', - changePwd: '密码修改', - }, - link: { - one3: '第三方登录', - two4: '友情链接', - }, - account: { - accountPlaceholder1: '请输入登录账号/邮箱/手机号', - accountPlaceholder2: '请输入登录密码', - accountPlaceholder3: '请输入验证码', - accountPlaceholder4:'请输入新密码', - accountPlaceholder5:'请再次输入新密码', - accountBtnText: '登 录', - }, - mobile: { - placeholder1: '请输入手机号', - placeholder2: '请输入验证码', - codeText: '获取验证码', - btnText: '登 录', - msgText: '* 温馨提示:建议使用谷歌、Microsoft Edge,版本 79.0.1072.62 及以上浏览器,360浏览器请使用极速模式', - }, - scan: { - text: '打开手机扫一扫,快速登录/注册', - }, - signInText: '欢迎回来!', - loginTitle: '采购询报价系统 - 采购端', - supplierTitle: '采购询报价系统 - 供应商端', - firstLoginTip: '初次登录请修改密码', - welcomeLogin: '欢迎登录', - copyright: 'Copyright © AVC 版权所有', + message: { + pages: { + login: { + label: { + one1: '账号密码登录', + two2: '手机号登录', + two3: '二维码登录', + changePwd: '密码修改', + }, + link: { + one3: '第三方登录', + two4: '友情链接', + }, + account: { + accountPlaceholder1: '请输入登录账号/邮箱/手机号', + accountPlaceholder2: '请输入登录密码', + accountPlaceholder3: '请输入验证码', + accountPlaceholder4: '请输入新密码', + accountPlaceholder5: '请再次输入新密码', + accountBtnText: '登 录', + }, + mobile: { + placeholder1: '请输入手机号', + placeholder2: '请输入验证码', + codeText: '获取验证码', + btnText: '登 录', + msgText: '* 温馨提示:建议使用谷歌、Microsoft Edge,版本 79.0.1072.62 及以上浏览器,360浏览器请使用极速模式', + }, + scan: { + text: '打开手机扫一扫,快速登录/注册', + }, + signInText: '欢迎回来!', + loginTitle: '采购询报价系统 - 采购端', + supplierTitle: '采购询报价系统 - 供应商端', + firstLoginTip: '初次登录请修改密码', + welcomeLogin: '欢迎登录', + copyright: 'Copyright © AVC 版权所有', + }, + }, + }, }; diff --git a/web/src/i18n/pages/login/zh-tw.ts b/web/src/i18n/pages/login/zh-tw.ts index a73b66e..d9bfe60 100644 --- a/web/src/i18n/pages/login/zh-tw.ts +++ b/web/src/i18n/pages/login/zh-tw.ts @@ -1,37 +1,43 @@ // 定义内容 export default { - label: { - one1: '用戶名登入', - two2: '手機號登入', - two3: '掃碼登錄', - changePwd: '密码修改', - }, - link: { - one3: '協力廠商登入', - two4: '友情連結', - }, - account: { - accountPlaceholder1: '請輸入登入賬號', - accountPlaceholder2: '請輸入登入密碼', - accountPlaceholder3: '請輸入驗證碼', - accountPlaceholder4: '請輸入新密碼', - accountPlaceholder5: '請再次輸入新密碼', - accountBtnText: '登入', - }, - mobile: { - placeholder1: '請輸入手機號', - placeholder2: '請輸入驗證碼', - codeText: '獲取驗證碼', - btnText: '登入', - msgText: '* 溫馨提示:建議使用穀歌、Microsoft Edge,版本79.0.1072.62及以上瀏覽器,360瀏覽器請使用極速模式', - }, - scan: { - text: '打開手機掃一掃,快速登錄/注册', - }, - signInText: '歡迎回來!', - loginTitle: '採購詢報價系統 - 採購端', - supplierTitle: '採購詢報價系統 - 供應商端', - firstLoginTip: '初次登入請修改密碼', - welcomeLogin: '歡迎登入', - copyright: 'Copyright © AVC 版權所有', + message: { + pages: { + login: { + label: { + one1: '用戶名登入', + two2: '手機號登入', + two3: '掃碼登錄', + changePwd: '密码修改', + }, + link: { + one3: '協力廠商登入', + two4: '友情連結', + }, + account: { + accountPlaceholder1: '請輸入登入賬號', + accountPlaceholder2: '請輸入登入密碼', + accountPlaceholder3: '請輸入驗證碼', + accountPlaceholder4: '請輸入新密碼', + accountPlaceholder5: '請再次輸入新密碼', + accountBtnText: '登入', + }, + mobile: { + placeholder1: '請輸入手機號', + placeholder2: '請輸入驗證碼', + codeText: '獲取驗證碼', + btnText: '登入', + msgText: '* 溫馨提示:建議使用穀歌、Microsoft Edge,版本79.0.1072.62及以上瀏覽器,360瀏覽器請使用極速模式', + }, + scan: { + text: '打開手機掃一掃,快速登錄/注册', + }, + signInText: '歡迎回來!', + loginTitle: '採購詢報價系統 - 採購端', + supplierTitle: '採購詢報價系統 - 供應商端', + firstLoginTip: '初次登入請修改密碼', + welcomeLogin: '歡迎登入', + copyright: 'Copyright © AVC 版權所有', + }, + }, + }, };