From 2ba123759882290909857af29df05cd99665b7fb Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 3 Jun 2026 00:35:49 +0800 Subject: [PATCH] feat(i18n): add login hints for new users in multiple languages - Introduced new localization strings for login hints and first-time user prompts in English, Korean, Russian, and Chinese. - Updated the Login.vue component to enhance user guidance during the login process. This change aims to improve the onboarding experience for new users by providing clear instructions on how to sign in or create an account. --- frontend/src/i18n/locales/en-US.ts | 2 + frontend/src/i18n/locales/ko-KR.ts | 2 + frontend/src/i18n/locales/ru-RU.ts | 2 + frontend/src/i18n/locales/zh-CN.ts | 2 + frontend/src/views/auth/Login.vue | 621 ++++++++++++++++++----------- 5 files changed, 387 insertions(+), 242 deletions(-) diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 8f459392..05214daa 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -1543,6 +1543,8 @@ export default { noAccount: 'Don\'t have an account?', backToLogin: 'Back to Login', registerNow: 'Register Now', + loginHint: 'Sign in to continue, or create an account below if this is your first time.', + firstTime: 'New to WeKnora?', registerSuccess: 'Registration successful! The system has created an exclusive tenant for you, please login', registerFailed: 'Registration failed', subtitle: 'Document understanding and semantic search framework based on large models', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index b911a387..304197d1 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -1397,6 +1397,8 @@ export default { noAccount: "계정이 없으신가요?", backToLogin: "로그인으로 돌아가기", registerNow: "지금 가입하기", + loginHint: "로그인하여 계속하세요. 처음이시라면 아래에서 계정을 만드세요.", + firstTime: "WeKnora가 처음이신가요?", registerSuccess: "가입 성공! 시스템이 전용 테넌트를 생성했습니다. 로그인해주세요", registerFailed: "가입 실패", subtitle: "대규모 언어 모델 기반 문서 이해 및 시맨틱 검색 프레임워크", diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 1b3e4aab..17ca2d8b 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -1416,6 +1416,8 @@ export default { noAccount: 'Ещё нет аккаунта?', backToLogin: 'Вернуться ко входу', registerNow: 'Зарегистрироваться', + loginHint: 'Войдите, чтобы продолжить, или создайте аккаунт ниже, если вы впервые здесь.', + firstTime: 'Впервые в WeKnora?', registerSuccess: 'Регистрация успешна! Система создала для вас эксклюзивного арендатора, пожалуйста, войдите', registerFailed: 'Ошибка регистрации', subtitle: 'Фреймворк понимания документов и семантического поиска на основе больших моделей', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index e638d4bb..73c3019d 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -1392,6 +1392,8 @@ export default { noAccount: "还没有账户?", backToLogin: "返回登录", registerNow: "立即注册", + loginHint: "登录以继续使用;首次使用请在下方创建账户。", + firstTime: "首次使用 WeKnora?", registerSuccess: "注册成功!系统已为您创建专属空间,请登录", registerFailed: "注册失败", subtitle: "基于大模型的文档理解和语义搜索框架", diff --git a/frontend/src/views/auth/Login.vue b/frontend/src/views/auth/Login.vue index 96b79ca5..97ae3bc9 100755 --- a/frontend/src/views/auth/Login.vue +++ b/frontend/src/views/auth/Login.vue @@ -3,76 +3,79 @@
- - + +
- +
- - - + + +
- - - + + +
- - + +
- - - + + +
- - + +
- - - - + + + +
- +
- - + +
- - + +
- +
@@ -100,39 +103,37 @@