0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

refactor(ui-phrase): ui content update (#1249)

ui content update
This commit is contained in:
simeng-li 2022-06-27 15:03:30 +08:00 committed by GitHub
parent 3c747b3100
commit 84a63281f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 31 deletions

View file

@ -33,7 +33,7 @@ const translation = {
reminder: 'Reminder', reminder: 'Reminder',
not_found: '404 Not Found', not_found: '404 Not Found',
agree_with_terms: 'I have read and agree to the ', agree_with_terms: 'I have read and agree to the ',
agree_with_terms_modal: 'Please read the {{terms}} and then agree the box first.', agree_with_terms_modal: 'To proceed, please agree to the {{terms}}.',
terms_of_use: 'Terms of Use', terms_of_use: 'Terms of Use',
create_account: 'Create Account', create_account: 'Create Account',
forgot_password: 'Forgot Password?', forgot_password: 'Forgot Password?',
@ -53,20 +53,19 @@ const translation = {
social_bind_with_existing: 'We find a related account, you can bind it directly.', social_bind_with_existing: 'We find a related account, you can bind it directly.',
}, },
error: { error: {
username_password_mismatch: 'Username and password do not match.', username_password_mismatch: 'Username and password do not match',
username_required: 'Username is required.', username_required: 'Username is required',
password_required: 'Password is required.', password_required: 'Password is required',
username_exists: 'Username already exists.', username_exists: 'Username already exists',
username_should_not_start_with_number: 'Username should not start with a number.', username_should_not_start_with_number: 'Username should not start with a number',
username_valid_charset: 'Username should only contain letters, numbers, or underscore.', username_valid_charset: 'Username should only contain letters, numbers, or underscore.',
invalid_email: 'The email is invalid', invalid_email: 'The email is invalid',
invalid_phone: 'The phone number is invalid', invalid_phone: 'The phone number is invalid',
password_min_length: 'Password requires a minimum of {{min}} characters.', password_min_length: 'Password requires a minimum of {{min}} characters',
passwords_do_not_match: 'Passwords do not match.', passwords_do_not_match: 'Passwords do not match',
agree_terms_required: 'You must agree to the Terms of Use before continuing.', invalid_passcode: 'The passcode is invalid',
invalid_passcode: 'The passcode is invalid.', invalid_connector_auth: 'The authorization is invalid',
invalid_connector_auth: 'The authorization is invalid.', invalid_connector_request: 'The connector data is invalid',
invalid_connector_request: 'The connector data is invalid.',
unknown: 'Unknown error, please try again later.', unknown: 'Unknown error, please try again later.',
invalid_session: 'Session not found. Please go back and sign in again.', invalid_session: 'Session not found. Please go back and sign in again.',
}, },

View file

@ -16,7 +16,7 @@ const translation = {
action: { action: {
sign_in: '登录', sign_in: '登录',
continue: '继续', continue: '继续',
create_account: '创建号', create_account: '创建号',
create: '创建', create: '创建',
enter_passcode: '输入验证码', enter_passcode: '输入验证码',
cancel: '取消', cancel: '取消',
@ -35,7 +35,7 @@ const translation = {
reminder: '提示', reminder: '提示',
not_found: '404 页面不存在', not_found: '404 页面不存在',
agree_with_terms: '我已阅读并同意 ', agree_with_terms: '我已阅读并同意 ',
agree_with_terms_modal: 'Please read the {{terms}} and then agree the box first.', agree_with_terms_modal: '请先同意 {{terms}} 以继续',
terms_of_use: '使用条款', terms_of_use: '使用条款',
create_account: '创建账号', create_account: '创建账号',
forgot_password: '忘记密码?', forgot_password: '忘记密码?',
@ -45,28 +45,27 @@ const translation = {
resend_after_seconds: '在 {{ seconds }} 秒后重发', resend_after_seconds: '在 {{ seconds }} 秒后重发',
resend_passcode: '重发验证码', resend_passcode: '重发验证码',
continue_with: '通过以下方式继续', continue_with: '通过以下方式继续',
create_account_id_exists: '{{type}}为 {{ value }} 的账号已存在,您要登录吗?', create_account_id_exists: '{{ type }}为 {{ value }} 的帐号已存在,您要登录吗?',
sign_in_id_does_not_exists: '{{type}}为 {{ value }} 的账号不存在,您要创建一个新账号吗?', sign_in_id_does_not_exists: '{{ type }}为 {{ value }} 的帐号不存在,您要创建一个新帐号吗?',
bind_account_title: '绑定 Logto 号', bind_account_title: '绑定 Logto 号',
social_create_account: 'No account? You can create a new account and bind.', social_create_account: '没有帐号?您可以创建一个账号并绑定。',
social_bind_account: 'Already have an account? Sign in to bind it with your social identity.', social_bind_account: '已有账号?登录以绑定社交身份。',
social_bind_with_existing: 'We find a related account, you can bind it directly.', social_bind_with_existing: '我们找到了一个匹配的帐号,你可以直接绑定。',
}, },
error: { error: {
username_password_mismatch: '用户名和密码不匹配', username_password_mismatch: '用户名和密码不匹配',
username_required: '用户名必填', username_required: '用户名必填',
password_required: '密码必填', password_required: '密码必填',
username_exists: '用户名已存在', username_exists: '用户名已存在',
username_should_not_start_with_number: '用户名不能以数字开头', username_should_not_start_with_number: '用户名不能以数字开头',
username_valid_charset: '用户名只能包含英文字母、数字或下划线。', username_valid_charset: '用户名只能包含英文字母、数字或下划线。',
invalid_email: '无效的邮箱。', invalid_email: '无效的邮箱',
invalid_phone: '无效的手机号。', invalid_phone: '无效的手机号',
password_min_length: '密码最少需要{{min}}个字符。', password_min_length: '密码最少需要{{min}}个字符',
passwords_do_not_match: '密码不匹配。', passwords_do_not_match: '密码不匹配',
agree_terms_required: '你需要同意使用条款以继续。', invalid_passcode: '无效的验证码',
invalid_passcode: '无效的验证码。', invalid_connector_auth: '登录失败',
invalid_connector_auth: '登录失败。', invalid_connector_request: '无效的登录请求',
invalid_connector_request: '无效的登录请求。',
unknown: '未知错误,请稍后重试。', unknown: '未知错误,请稍后重试。',
invalid_session: '未找到有效的会话,请重新登录。', invalid_session: '未找到有效的会话,请重新登录。',
}, },