YANG QIA be6b949f55
feat(auth): support signing in with username (#2376)
* feat(auth): support signing in with username

* chore: compatibility && add INIT_ROOT_USERNAME

* chore: add default username of root user

* chore: add notice

* fix: typo

* chore: change rule of username

* fix: sqlite add unique constraint

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-08-19 22:02:26 +08:00

26 lines
1.3 KiB
TypeScript

const locale = {
'Auth Type': '认证类型',
Authenticators: '认证器',
Authentication: '用户认证',
'Sign in via email': '邮箱登录',
'Sign in via password': '密码登录',
'Not allowed to sign up': '禁止注册',
'Allow to sign up': '允许注册',
'The username or email is incorrect, please re-enter': '用户名或邮箱有误,请重新输入',
'The password is incorrect, please re-enter': '密码有误,请重新输入',
'Not a valid cellphone number, please re-enter': '不是有效的手机号,请重新输入',
'The phone number has been registered, please login directly': '手机号已注册,请直接登录',
'The phone number is not registered, please register first': '手机号未注册,请先注册',
'Please keep and enable at least one authenticator': '请至少保留并启用一个认证器',
'Allow to sign in with': '允许使用以下方式登录',
'Please enter a valid username': '请输入有效的用户名',
'Please enter a valid email': '请输入有效的邮箱',
'Please enter your username or email': '请输入用户名或邮箱',
SMS: '短信',
'Username/Email': '用户名/邮箱',
'Auth UID': '认证标识',
'The authentication allows users to sign in via username or email.': '该认证方式支持用户通过用户名或邮箱登录。',
};
export default locale;