mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-18 03:34:20 +00:00
feat: add Space integration for user authentication and model management with OAuth support
This commit is contained in:
@@ -47,6 +47,30 @@ const enUS = {
|
||||
test: 'Test',
|
||||
forgotPassword: 'Forgot Password?',
|
||||
loading: 'Loading...',
|
||||
or: 'or',
|
||||
loginWithSpace: 'Login with Space',
|
||||
spaceLoginRecommended: 'Recommended: Sync models and credits from Space',
|
||||
loginLocal: 'Login with local account',
|
||||
spaceLoginTitle: 'Login with Space',
|
||||
spaceLoginDescription:
|
||||
'Scan the QR code or visit the link below to authorize',
|
||||
spaceLoginUserCode: 'Your code',
|
||||
spaceLoginExpires: 'Code expires in {{seconds}} seconds',
|
||||
spaceLoginWaiting: 'Waiting for authorization...',
|
||||
spaceLoginSuccess: 'Authorization successful',
|
||||
spaceLoginFailed: 'Space login failed',
|
||||
spaceLoginExpired: 'Authorization code expired, please try again',
|
||||
spaceLoginCancel: 'Cancel',
|
||||
spaceLoginVisitLink: 'Visit link',
|
||||
spaceLoginProcessing: 'Logging in with Space',
|
||||
spaceLoginProcessingDescription:
|
||||
'Please wait while we complete your login...',
|
||||
spaceLoginSuccessDescription: 'Redirecting to LangBot...',
|
||||
spaceLoginError: 'Login Failed',
|
||||
spaceLoginNoCode: 'Missing authorization code',
|
||||
backToLogin: 'Back to Login',
|
||||
spaceAccountCannotChangePassword:
|
||||
'Space accounts cannot change password here',
|
||||
theme: 'Theme',
|
||||
changePassword: 'Change Password',
|
||||
currentPassword: 'Current Password',
|
||||
@@ -152,6 +176,16 @@ const enUS = {
|
||||
testSuccess: 'Test successful',
|
||||
testError: 'Test failed, please check your model configuration',
|
||||
llmModels: 'LLM Models',
|
||||
localProvider: 'Local',
|
||||
localProviderDescription: 'Models configured and managed locally',
|
||||
spaceProviderDescription: 'Models synced from your Space account',
|
||||
spaceDisabledForLocalAccount: 'Login with Space to use cloud models',
|
||||
syncModels: 'Sync',
|
||||
syncSuccess: 'Sync complete: {{created}} created, {{updated}} updated',
|
||||
syncError: 'Sync failed: ',
|
||||
spaceModelReadOnly: 'Space models are read-only',
|
||||
noSpaceModels: 'No Space models. Click Sync to fetch models from Space.',
|
||||
noLocalModels: 'No local models. Click Create to add a model.',
|
||||
},
|
||||
bots: {
|
||||
title: 'Bots',
|
||||
@@ -640,6 +674,9 @@ const enUS = {
|
||||
adminAccountNote:
|
||||
'The email and password you fill in will be used as the initial administrator account',
|
||||
register: 'Register',
|
||||
initWithSpace: 'Initialize with Space',
|
||||
spaceRecommended: 'Recommended: Sync models and credits from Space',
|
||||
registerLocal: 'Register local account',
|
||||
initSuccess: 'Initialization successful, please login',
|
||||
initFailed: 'Initialization failed: ',
|
||||
},
|
||||
|
||||
@@ -48,6 +48,31 @@ const jaJP = {
|
||||
test: 'テスト',
|
||||
forgotPassword: 'パスワードを忘れた?',
|
||||
loading: '読み込み中...',
|
||||
or: 'または',
|
||||
loginWithSpace: 'Space でログイン',
|
||||
spaceLoginRecommended: 'おすすめ:Space からモデルとクレジットを同期',
|
||||
loginLocal: 'ローカルアカウントでログイン',
|
||||
spaceLoginTitle: 'Space でログイン',
|
||||
spaceLoginDescription:
|
||||
'QRコードをスキャンするか、下のリンクにアクセスして認証してください',
|
||||
spaceLoginUserCode: '認証コード',
|
||||
spaceLoginExpires: 'コードは {{seconds}} 秒後に期限切れになります',
|
||||
spaceLoginWaiting: '認証を待っています...',
|
||||
spaceLoginSuccess: '認証に成功しました',
|
||||
spaceLoginFailed: 'Space ログインに失敗しました',
|
||||
spaceLoginExpired:
|
||||
'認証コードの有効期限が切れました。もう一度お試しください',
|
||||
spaceLoginCancel: 'キャンセル',
|
||||
spaceLoginVisitLink: 'リンクにアクセス',
|
||||
spaceLoginProcessing: 'Space でログイン中',
|
||||
spaceLoginProcessingDescription:
|
||||
'ログインを完了しています。しばらくお待ちください...',
|
||||
spaceLoginSuccessDescription: 'LangBot にリダイレクト中...',
|
||||
spaceLoginError: 'ログインに失敗しました',
|
||||
spaceLoginNoCode: '認証コードがありません',
|
||||
backToLogin: 'ログインに戻る',
|
||||
spaceAccountCannotChangePassword:
|
||||
'Space アカウントはここでパスワードを変更できません',
|
||||
theme: 'テーマ',
|
||||
changePassword: 'パスワードを変更',
|
||||
currentPassword: '現在のパスワード',
|
||||
@@ -154,6 +179,19 @@ const jaJP = {
|
||||
selectModel: 'モデルを選択してください',
|
||||
testSuccess: 'テストに成功しました',
|
||||
testError: 'テストに失敗しました。モデル設定を確認してください',
|
||||
llmModels: 'LLM モデル',
|
||||
localProvider: 'ローカル',
|
||||
localProviderDescription: 'ローカルで設定・管理されているモデル',
|
||||
spaceProviderDescription: 'Space アカウントから同期されたモデル',
|
||||
spaceDisabledForLocalAccount: 'Space でログインしてクラウドモデルを使用',
|
||||
syncModels: '同期',
|
||||
syncSuccess: '同期完了:{{created}} 件作成、{{updated}} 件更新',
|
||||
syncError: '同期に失敗しました:',
|
||||
spaceModelReadOnly: 'Space モデルは読み取り専用です',
|
||||
noSpaceModels:
|
||||
'Space モデルがありません。同期ボタンをクリックして Space からモデルを取得してください。',
|
||||
noLocalModels:
|
||||
'ローカルモデルがありません。作成ボタンをクリックしてモデルを追加してください。',
|
||||
},
|
||||
bots: {
|
||||
title: 'ボット',
|
||||
@@ -645,6 +683,9 @@ const jaJP = {
|
||||
adminAccountNote:
|
||||
'入力したメールアドレスとパスワードが初期管理者アカウントになります',
|
||||
register: '登録',
|
||||
initWithSpace: 'Space で初期化',
|
||||
spaceRecommended: 'おすすめ:Space からモデルとクレジットを同期',
|
||||
registerLocal: 'ローカルアカウントを登録',
|
||||
initSuccess: '初期化に成功しました。ログインしてください',
|
||||
initFailed: '初期化に失敗しました:',
|
||||
},
|
||||
|
||||
@@ -47,6 +47,27 @@ const zhHans = {
|
||||
test: '测试',
|
||||
forgotPassword: '忘记密码?',
|
||||
loading: '加载中...',
|
||||
or: '或',
|
||||
loginWithSpace: '通过 Space 登录',
|
||||
spaceLoginRecommended: '推荐:从 Space 同步模型和点数',
|
||||
loginLocal: '使用本地账号登录',
|
||||
spaceLoginTitle: '通过 Space 登录',
|
||||
spaceLoginDescription: '扫描二维码或访问下方链接进行授权',
|
||||
spaceLoginUserCode: '您的验证码',
|
||||
spaceLoginExpires: '验证码将在 {{seconds}} 秒后过期',
|
||||
spaceLoginWaiting: '等待授权中...',
|
||||
spaceLoginSuccess: '授权成功',
|
||||
spaceLoginFailed: 'Space 登录失败',
|
||||
spaceLoginExpired: '验证码已过期,请重试',
|
||||
spaceLoginCancel: '取消',
|
||||
spaceLoginVisitLink: '访问链接',
|
||||
spaceLoginProcessing: '正在通过 Space 登录',
|
||||
spaceLoginProcessingDescription: '请稍候,正在完成登录...',
|
||||
spaceLoginSuccessDescription: '正在跳转到 LangBot...',
|
||||
spaceLoginError: '登录失败',
|
||||
spaceLoginNoCode: '缺少授权码',
|
||||
backToLogin: '返回登录',
|
||||
spaceAccountCannotChangePassword: 'Space 账户无法在此修改密码',
|
||||
theme: '主题',
|
||||
changePassword: '修改密码',
|
||||
currentPassword: '当前密码',
|
||||
@@ -149,6 +170,16 @@ const zhHans = {
|
||||
testSuccess: '测试成功',
|
||||
testError: '测试失败,请检查模型配置',
|
||||
llmModels: '对话模型',
|
||||
localProvider: '本地',
|
||||
localProviderDescription: '在本地配置和管理的模型',
|
||||
spaceProviderDescription: '从您的 Space 账户同步的模型',
|
||||
spaceDisabledForLocalAccount: '使用 Space 登录以使用云端模型',
|
||||
syncModels: '同步',
|
||||
syncSuccess: '同步完成:创建 {{created}} 个,更新 {{updated}} 个',
|
||||
syncError: '同步失败:',
|
||||
spaceModelReadOnly: 'Space 模型为只读',
|
||||
noSpaceModels: '暂无 Space 模型。点击同步按钮从 Space 获取模型。',
|
||||
noLocalModels: '暂无本地模型。点击创建按钮添加模型。',
|
||||
},
|
||||
bots: {
|
||||
title: '机器人',
|
||||
@@ -616,6 +647,9 @@ const zhHans = {
|
||||
description: '这是您首次启动 LangBot',
|
||||
adminAccountNote: '您填写的邮箱和密码将作为初始管理员账号',
|
||||
register: '注册',
|
||||
initWithSpace: '通过 Space 初始化',
|
||||
spaceRecommended: '推荐:从 Space 同步模型和点数',
|
||||
registerLocal: '注册本地账号',
|
||||
initSuccess: '初始化成功 请登录',
|
||||
initFailed: '初始化失败:',
|
||||
},
|
||||
|
||||
@@ -47,6 +47,27 @@ const zhHant = {
|
||||
test: '測試',
|
||||
forgotPassword: '忘記密碼?',
|
||||
loading: '載入中...',
|
||||
or: '或',
|
||||
loginWithSpace: '透過 Space 登入',
|
||||
spaceLoginRecommended: '推薦:從 Space 同步模型和點數',
|
||||
loginLocal: '使用本地帳號登入',
|
||||
spaceLoginTitle: '透過 Space 登入',
|
||||
spaceLoginDescription: '掃描二維碼或訪問下方連結進行授權',
|
||||
spaceLoginUserCode: '您的驗證碼',
|
||||
spaceLoginExpires: '驗證碼將在 {{seconds}} 秒後過期',
|
||||
spaceLoginWaiting: '等待授權中...',
|
||||
spaceLoginSuccess: '授權成功',
|
||||
spaceLoginFailed: 'Space 登入失敗',
|
||||
spaceLoginExpired: '驗證碼已過期,請重試',
|
||||
spaceLoginCancel: '取消',
|
||||
spaceLoginVisitLink: '訪問連結',
|
||||
spaceLoginProcessing: '正在透過 Space 登入',
|
||||
spaceLoginProcessingDescription: '請稍候,正在完成登入...',
|
||||
spaceLoginSuccessDescription: '正在跳轉到 LangBot...',
|
||||
spaceLoginError: '登入失敗',
|
||||
spaceLoginNoCode: '缺少授權碼',
|
||||
backToLogin: '返回登入',
|
||||
spaceAccountCannotChangePassword: 'Space 帳戶無法在此修改密碼',
|
||||
theme: '主題',
|
||||
changePassword: '修改密碼',
|
||||
currentPassword: '當前密碼',
|
||||
@@ -149,6 +170,16 @@ const zhHant = {
|
||||
testSuccess: '測試成功',
|
||||
testError: '測試失敗,請檢查模型設定',
|
||||
llmModels: '對話模型',
|
||||
localProvider: '本地',
|
||||
localProviderDescription: '在本地設定和管理的模型',
|
||||
spaceProviderDescription: '從您的 Space 帳戶同步的模型',
|
||||
spaceDisabledForLocalAccount: '使用 Space 登入以使用雲端模型',
|
||||
syncModels: '同步',
|
||||
syncSuccess: '同步完成:建立 {{created}} 個,更新 {{updated}} 個',
|
||||
syncError: '同步失敗:',
|
||||
spaceModelReadOnly: 'Space 模型為唯讀',
|
||||
noSpaceModels: '暫無 Space 模型。點擊同步按鈕從 Space 取得模型。',
|
||||
noLocalModels: '暫無本地模型。點擊建立按鈕新增模型。',
|
||||
},
|
||||
bots: {
|
||||
title: '機器人',
|
||||
@@ -614,6 +645,9 @@ const zhHant = {
|
||||
description: '這是您首次啟動 LangBot',
|
||||
adminAccountNote: '您填寫的電子郵件和密碼將作為初始管理員帳號',
|
||||
register: '註冊',
|
||||
initWithSpace: '透過 Space 初始化',
|
||||
spaceRecommended: '推薦:從 Space 同步模型和點數',
|
||||
registerLocal: '註冊本地帳號',
|
||||
initSuccess: '初始化成功 請登入',
|
||||
initFailed: '初始化失敗:',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user