@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
64 lines (61 loc) • 1.97 kB
text/typescript
const oauth = {
consent: {
buttons: {
accept: '授权',
deny: '拒绝',
},
description: '应用 {{clientName}} 申请您的账户授权',
error: {
sessionInvalid: {
message: '授权会话已过期或无效,请重新发起授权流程。',
title: '授权会话无效',
},
title: '发生错误',
unsupportedInteraction: {
message: '不支持的交互类型: {promptName}',
title: '不支持的交互类型',
},
},
permissionsTitle: '请求以下权限:',
redirectUri: '授权成功后将重定向到',
scope: {
'email': '访问您的电子邮件地址',
'offline_access': '允许客户端访问您的数据',
'openid': '使用您的 LobeChat 账户进行身份验证',
'profile': '访问您的基本资料信息(名称、头像等)',
'sync-read': '读取您的同步数据',
'sync-write': '写入并更新您的同步数据',
},
title: '授权 {{clientName}}',
},
error: {
backToHome: '返回首页',
desc: 'OAuth 授权失败,失败原因:{{reason}}',
reason: {
internal_error: '服务端错误',
invalid_request: '无效的请求参数',
},
title: '授权失败',
},
handoff: {
desc: {
processing: '应用正在处理授权,即将跳转下一个页面...',
success: '已尝试打开桌面应用。如果应用未自动打开,请手动切换。您可以稍后关闭此浏览器窗口。',
},
title: {
processing: '授权处理中...',
success: '授权已完成',
},
},
login: {
button: '确认登录',
description: '应用 {{clientName}} 申请使用您的账户进行登录',
title: '登录 {{clientName}}',
userWelcome: '欢迎回来,',
},
success: {
subTitle: '您已成功授权应用访问您的账户,可以关闭该页面了',
title: '授权成功',
},
};
export default oauth;