chore: refactoring and tests, splitting up files (#12495)

This commit is contained in:
Adam
2026-02-06 10:02:31 -06:00
committed by GitHub
parent a4bc883595
commit 2c58dd6203
117 changed files with 9457 additions and 5827 deletions

View File

@@ -32,8 +32,8 @@ export const dict = {
"command.settings.open": "打开设置",
"command.session.previous": "上一个会话",
"command.session.next": "下一个会话",
"command.session.previous.unseen": "Previous unread session",
"command.session.next.unseen": "Next unread session",
"command.session.previous.unseen": "上一个未读会话",
"command.session.next.unseen": "下一个未读会话",
"command.session.archive": "归档会话",
"command.palette": "命令面板",
@@ -147,6 +147,43 @@ export const dict = {
"provider.connect.toast.connected.title": "{{provider}} 已连接",
"provider.connect.toast.connected.description": "现在可以使用 {{provider}} 模型了。",
"provider.custom.title": "自定义提供商",
"provider.custom.description.prefix": "配置与 OpenAI 兼容的提供商。请查看",
"provider.custom.description.link": "提供商配置文档",
"provider.custom.description.suffix": "。",
"provider.custom.field.providerID.label": "提供商 ID",
"provider.custom.field.providerID.placeholder": "myprovider",
"provider.custom.field.providerID.description": "使用小写字母、数字、连字符或下划线",
"provider.custom.field.name.label": "显示名称",
"provider.custom.field.name.placeholder": "我的 AI 提供商",
"provider.custom.field.baseURL.label": "基础 URL",
"provider.custom.field.baseURL.placeholder": "https://api.myprovider.com/v1",
"provider.custom.field.apiKey.label": "API 密钥",
"provider.custom.field.apiKey.placeholder": "API 密钥",
"provider.custom.field.apiKey.description": "可选。如果你通过请求头管理认证,可留空。",
"provider.custom.models.label": "模型",
"provider.custom.models.id.label": "ID",
"provider.custom.models.id.placeholder": "model-id",
"provider.custom.models.name.label": "名称",
"provider.custom.models.name.placeholder": "显示名称",
"provider.custom.models.remove": "移除模型",
"provider.custom.models.add": "添加模型",
"provider.custom.headers.label": "请求头(可选)",
"provider.custom.headers.key.label": "请求头",
"provider.custom.headers.key.placeholder": "Header-Name",
"provider.custom.headers.value.label": "值",
"provider.custom.headers.value.placeholder": "value",
"provider.custom.headers.remove": "移除请求头",
"provider.custom.headers.add": "添加请求头",
"provider.custom.error.providerID.required": "提供商 ID 为必填项",
"provider.custom.error.providerID.format": "请使用小写字母、数字、连字符或下划线",
"provider.custom.error.providerID.exists": "该提供商 ID 已存在",
"provider.custom.error.name.required": "显示名称为必填项",
"provider.custom.error.baseURL.required": "基础 URL 为必填项",
"provider.custom.error.baseURL.format": "必须以 http:// 或 https:// 开头",
"provider.custom.error.required": "必填",
"provider.custom.error.duplicate": "重复",
"provider.disconnect.toast.disconnected.title": "{{provider}} 已断开连接",
"provider.disconnect.toast.disconnected.description": "{{provider}} 模型已不再可用。",
"model.tag.free": "免费",
@@ -380,6 +417,7 @@ export const dict = {
"error.dev.rootNotFound": "未找到根元素。你是不是忘了把它添加到 index.html或者 id 属性拼写错了?",
"error.globalSync.connectFailed": "无法连接到服务器。是否有服务器正在 `{{url}}` 运行?",
"directory.error.invalidUrl": "URL 中的目录无效。",
"error.chain.unknown": "未知错误",
"error.chain.causedBy": "原因:",