2021-07-28 01:13:51 +08:00
|
|
|
import en from './en';
|
|
|
|
|
|
|
|
const translation = {
|
|
|
|
sign_in: {
|
2021-08-11 22:13:08 +08:00
|
|
|
action: '登录',
|
2021-07-28 01:13:51 +08:00
|
|
|
loading: '登录中...',
|
|
|
|
error: '用户名或密码错误。',
|
|
|
|
username: '用户名',
|
|
|
|
password: '密码',
|
|
|
|
},
|
|
|
|
register: {
|
2021-08-11 22:13:08 +08:00
|
|
|
create_account: '创建新账户',
|
|
|
|
action: '创建',
|
|
|
|
loading: '创建中...',
|
2021-08-01 23:24:36 +08:00
|
|
|
have_account: '已经有账户?',
|
2021-07-28 01:13:51 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const errors = {
|
2021-08-14 21:39:37 +08:00
|
|
|
auth: {
|
|
|
|
authorization_header_missing: 'Authorization 请求 header 遗漏。',
|
|
|
|
authorization_type_not_supported: '不支持的 authorization 类型。',
|
|
|
|
unauthorized: '未授权。请检查相关 credentials 和 scope。',
|
|
|
|
},
|
2021-07-28 01:13:51 +08:00
|
|
|
guard: {
|
|
|
|
invalid_input: '请求内容有误。',
|
|
|
|
},
|
|
|
|
oidc: {
|
|
|
|
aborted: '用户终止了交互。',
|
|
|
|
},
|
2021-08-11 22:13:08 +08:00
|
|
|
user: {
|
2021-07-28 01:13:51 +08:00
|
|
|
username_exists: '用户名已存在。',
|
|
|
|
},
|
2021-08-11 22:13:08 +08:00
|
|
|
session: {
|
2021-07-28 01:13:51 +08:00
|
|
|
invalid_credentials: '用户名或密码错误,请检查您的输入。',
|
|
|
|
invalid_sign_in_method: '当前登录方式不可用。',
|
|
|
|
insufficient_info: '登录信息缺失,请检查您的输入。',
|
|
|
|
},
|
|
|
|
swagger: {
|
|
|
|
invalid_zod_type: '无效的 Zod 类型,请检查路由 guard 配置。',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const zhCN: typeof en = Object.freeze({
|
|
|
|
translation,
|
|
|
|
errors,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default zhCN;
|