| 1 | // 英文语言包。这一份是**结构的权威**:`Strings = typeof en`,其余语言包按它定型, |
| 2 | // 漏一条就编译不过(见 docs/decisions/0004)。 |
| 3 | // |
| 4 | // 加新文案时先加在这里,再补其余语言包——顺序反了会得到一个类型错误,那正是本意。 |
| 5 | export const en = { |
| 6 | app: { |
| 7 | name: "Utopia", |
| 8 | // 化用《乌托邦》全书最后一句(Burnet 1684 译本): |
| 9 | // "there are many things in the commonwealth of Utopia that I rather wish, |
| 10 | // than hope, to see followed in our governments." |
| 11 | // 改 I 为 We、去掉插入语逗号、留白 to see 的宾语。 |
| 12 | tagline: "We rather wish than hope to see.", |
| 13 | taglineSource: "— Thomas More, 1516", |
| 14 | siteUrl: "https://utopia.bi", |
| 15 | docsUrl: "https://utopia.bi/docs", |
| 16 | }, |
| 17 | /** 服务端校验错误的措辞。key = 服务端给的 code;缺一条就退回英文原句,不会崩。 |
| 18 | 契约守卫(调错接口才碰得到)刻意不在这里——它们的读者是开发者 */ |
| 19 | err: { |
| 20 | bad_email: "That doesn't look like an email address.", |
| 21 | password_too_short: "Password must be at least 8 characters.", |
| 22 | bad_display_name: "Display name must be 1-64 characters.", |
| 23 | wrong_password: "Current password is incorrect.", |
| 24 | registration_closed: |
| 25 | "Sign-up is closed on this deployment — ask an administrator for an account.", |
| 26 | no_chat_model: |
| 27 | "No chat model configured yet. Set one under Settings → Models.", |
| 28 | bad_upload: "That upload could not be read.", |
| 29 | upload_read_failed: "The file could not be read to the end.", |
| 30 | no_files: "No file was attached.", |
| 31 | upload_needs_folder: "Files can only be uploaded into a folder source.", |
| 32 | empty_file: "That file is empty.", |
| 33 | file_too_large: "That file is too large — the limit is 8 MB.", |
| 34 | bad_ontology_file: "That is not a readable OWL or RDFS file.", |
| 35 | bad_name: "Name must be 1-64 characters.", |
| 36 | default_kb_open: |
| 37 | "The default knowledge base stays open to everyone — create a separate one for private work.", |
| 38 | default_kb_undeletable: "The default knowledge base cannot be deleted.", |
| 39 | last_owner_demote: "This is the last owner — promote someone else first.", |
| 40 | last_owner_remove: "This is the last owner — hand ownership over first.", |
| 41 | key_required: "A key is required.", |
| 42 | forms_required: "Pick at least one phrase this relation covers.", |
| 43 | bad_key: |
| 44 | "Keys are lowercase, letters digits and underscores only, up to 40 characters.", |
| 45 | self_parent: "A class cannot be its own parent.", |
| 46 | parent_cycle: |
| 47 | "That class is already below this one — the hierarchy would loop.", |
| 48 | bad_lang: "Pick a supported language.", |
| 49 | attr_needs_class: "An attribute has to belong to a class.", |
| 50 | attr_has_no_link: |
| 51 | "An attribute has no inverse and no super-property — its value is a literal, not something to point back from.", |
| 52 | link_target_is_attr: |
| 53 | "Pick a relation, not an attribute — an attribute's value is a literal.", |
| 54 | sub_property_self: "A relation cannot be its own super-property.", |
| 55 | unknown_relation: "That relation is not in this knowledge base.", |
| 56 | entity_name_required: "Name cannot be empty.", |
| 57 | entity_name_too_long: "Name is too long — 100 characters at most.", |
| 58 | unknown_entity_type: "That class is not in this ontology.", |
| 59 | nothing_to_update: "Nothing to change.", |
| 60 | self_merge: "An entity cannot be merged into itself.", |
| 61 | close_at_required: |
| 62 | "Pick the date this fact ended — the new one does not say when it started.", |
| 63 | empty_query: "Type something to search for.", |
| 64 | no_data_sources: "No databases are mounted on this knowledge base.", |
| 65 | // 授权是逐工作区的(0014):源没授权给本库所属的工作区 |
| 66 | source_not_granted: |
| 67 | "This data source is not granted to this workspace. Ask a deployment admin to grant it in System settings → Data sources.", |
| 68 | memory_source_permanent: |
| 69 | "The Memory source is part of the knowledge base and stays.", |
| 70 | source_name_required: "Give this source a name.", |
| 71 | bad_cron: "That cron expression could not be parsed.", |
| 72 | bad_cron_fields: |
| 73 | "A cron expression has five fields: minute hour day month weekday.", |
| 74 | ds_name_required: "Give this data source a name.", |
| 75 | only_postgres: "Only PostgreSQL is supported for now.", |
| 76 | bad_conn_string: "A connection string starts with postgres://", |
| 77 | concurrency_range: "Pick a number between 1 and 256.", |
| 78 | inference_off: |
| 79 | "Materialized inference is off for this knowledge base. Turn it on in Settings.", |
| 80 | bad_resolution: "That is not a valid decision.", |
| 81 | }, |
| 82 | /** 机器给的补充(cron 解析器的原话之类)缀在措辞后面 */ |
| 83 | errDetail: (msg: string, detail: string) => `${msg} (${detail})`, |
| 84 | toast: { |
| 85 | saved: "Saved", |
| 86 | created: "Created", |
| 87 | deleted: "Deleted", |
| 88 | added: "Added to the ontology", |
| 89 | }, |
| 90 | account: { |
| 91 | /* 账户区字标:Persona——你在这座城里的身份面具 */ |
| 92 | brand: "Utopia Persona", |
| 93 | /* 网页标题用的短名:`Utopia | Persona` */ |
| 94 | titleTag: "Persona", |
| 95 | profile: "Profile", |
| 96 | administration: "Administration", |
| 97 | adminChip: "Admin", |
| 98 | backToApp: "← Back to app", |
| 99 | profileTitle: "Profile", |
| 100 | displayName: "Display name", |
| 101 | email: "Email", |
| 102 | save: "Save", |
| 103 | passwordTitle: "Change password", |
| 104 | currentPassword: "Current password", |
| 105 | newPassword: "New password (min. 8 characters)", |
| 106 | changePassword: "Update password", |
| 107 | passwordChanged: "Password updated", |
| 108 | avatarHint: "Avatars are generated from your name for now.", |
| 109 | language: "Language", |
| 110 | kbsNav: "Knowledge bases", |
| 111 | kbsTitle: "Knowledge bases", |
| 112 | kbOpen: "Open", |
| 113 | kbRestricted: "Restricted", |
| 114 | kbStats: (docs: number, members: number) => |
| 115 | `${docs} doc${docs === 1 ? "" : "s"} · ${members} member${members === 1 ? "" : "s"}`, |
| 116 | addedBy: (name: string, date: string) => `Added by ${name} · ${date}`, |
| 117 | joinedOn: (date: string) => `Joined ${date}`, |
| 118 | openToEveryone: "Open to everyone", |
| 119 | deploymentAdmin: "Deployment admin", |
| 120 | openKb: "Open", |
| 121 | kbSettingsBtn: "Settings", |
| 122 | /* 个人令牌页(0014 / 0016 A2):给 agent 的钥匙,以这个人的身份行事 */ |
| 123 | tokensNav: "Agents & tokens", |
| 124 | tokensTitle: "Personal access tokens", |
| 125 | tokensHint: |
| 126 | "A token lets an agent reach Utopia over MCP as you, never with more than you can do yourself. Read-only by default, limited to the bases you pick, revocable here at any time.", |
| 127 | newToken: "New token", |
| 128 | tokenName: "Name", |
| 129 | tokenNamePlaceholder: "My laptop", |
| 130 | tokenScope: "Scope", |
| 131 | scopeRead: "Read", |
| 132 | scopeWrite: "Write", |
| 133 | scopeHint: |
| 134 | "Effective rights are your own role ∩ this scope. Write is a ceiling, not a grant: a viewer's write token still cannot write.", |
| 135 | tokenKbs: "Knowledge bases", |
| 136 | kbsAllHint: "Nothing selected means every base you can open.", |
| 137 | tokenExpires: "Expires", |
| 138 | expiresDays: (n: number) => `${n} days`, |
| 139 | expiresNever: "Never", |
| 140 | issueToken: "Create token", |
| 141 | issuedTitle: "Copy it now. It will not be shown again.", |
| 142 | issuedHint: |
| 143 | "Utopia keeps only a hash of it. If you lose it, revoke it here and create another.", |
| 144 | copy: "Copy", |
| 145 | copied: "Copied", |
| 146 | mcpTitle: "MCP client configuration", |
| 147 | mcpHint: |
| 148 | "For Claude Code, Claude Desktop and other Streamable HTTP clients. Each base has its own endpoint, so pick the one the agent should talk to. Other clients spell the keys differently.", |
| 149 | mcpBase: "Base", |
| 150 | yourTokens: "Your tokens", |
| 151 | noTokens: "No tokens yet.", |
| 152 | allBases: "All bases", |
| 153 | nBases: (n: number) => `${n} base${n === 1 ? "" : "s"}`, |
| 154 | lastUsed: (d: string) => `last used ${d}`, |
| 155 | neverUsed: "never used", |
| 156 | expiresOn: (d: string) => `expires ${d}`, |
| 157 | noExpiry: "no expiry", |
| 158 | createdOn: (d: string) => `created ${d}`, |
| 159 | revoke: "Revoke", |
| 160 | revokeConfirm: "Revoke?", |
| 161 | revokedOn: (d: string) => `revoked ${d}`, |
| 162 | tokenDone: "Done", |
| 163 | roleNames: { |
| 164 | owner: "Owner", |
| 165 | admin: "Admin", |
| 166 | editor: "Editor", |
| 167 | viewer: "Viewer", |
| 168 | } as Record<string, string>, |
| 169 | }, |
| 170 | docs: { |
| 171 | /* 文档区字标:Charter——理想之城的立城宪章,与主字标同字体同字号 */ |
| 172 | brand: "Utopia Charter", |
| 173 | backTitle: "Back to Utopia", |
| 174 | searchPlaceholder: "Search the docs…", |
| 175 | noResults: "No matches.", |
| 176 | }, |
| 177 | // 告警的措辞在客户端,按 kind 查——服务端只发 kind 与 detail, |
| 178 | // 不产出展示文案(docs/decisions/0004) |
| 179 | alerts: { |
| 180 | title: "Alerts", |
| 181 | badgeLabel: "Alerts", |
| 182 | empty: "Nothing needs attention", |
| 183 | emptyHint: |
| 184 | "Ingestion, sync and model failures show up here instead of only in the logs.", |
| 185 | markAllRead: "Mark all read", |
| 186 | close: "Close", |
| 187 | // 说清搜的是什么:标题的措辞在客户端,服务端搜不到它, |
| 188 | // 所以别让人以为输入 "sync failed" 会有结果 |
| 189 | searchPlaceholder: "Search sources, knowledge bases, errors", |
| 190 | noMatch: "Nothing matches", |
| 191 | andMore: (n: number) => `and ${n} more`, |
| 192 | system: "System", |
| 193 | // kind → 一句说清出了什么事。第二句说该做什么——这才是告警比日志多出来的东西。 |
| 194 | // **一条告警就是一次故障**,所以标题里没有数量 |
| 195 | kinds: { |
| 196 | "source.sync_failed": { |
| 197 | title: "A source failed to sync", |
| 198 | hint: "Nothing new came in from it. Check the source's settings.", |
| 199 | }, |
| 200 | "data_source.schema_sync_failed": { |
| 201 | title: "A data source is mounted, but its schema is not", |
| 202 | hint: "Ask cannot see which tables exist, so it will guess column names. Check the connection, then use Refresh schema.", |
| 203 | }, |
| 204 | "mapping.exploration_empty": { |
| 205 | title: "Mapping exploration proposed nothing", |
| 206 | hint: "The model read the mounted schema but found no metric or dimension to propose. Refresh the schema under Data mapping > Data sources, add column comments if you can, then run Explore again.", |
| 207 | }, |
| 208 | "llm.unreachable": { |
| 209 | title: "The model endpoint gave no usable answer", |
| 210 | hint: "Extraction and embedding are stopped. Check the endpoint URL in system settings.", |
| 211 | }, |
| 212 | "llm.rate_limited": { |
| 213 | title: "The model endpoint is rate limiting us", |
| 214 | hint: "Documents were retried and still turned away, so some are missing facts. Lower model concurrency in system settings, or raise the quota on the account.", |
| 215 | }, |
| 216 | "llm.out_of_credit": { |
| 217 | title: "The model account cannot pay for requests", |
| 218 | hint: "Extraction and embedding are stopped and will not resume on their own. Top up the account, or point system settings at an endpoint that can serve.", |
| 219 | }, |
| 220 | } as Record<string, { title: string; hint: string } | undefined>, |
| 221 | // 没见过的 kind 也要能显示:新告警源上线时前端可能还没更新 |
| 222 | unknownKind: (kind: string) => kind, |
| 223 | }, |
| 224 | |
| 225 | kbScope: { |
| 226 | deniedTitle: "You don't have access to this knowledge base", |
| 227 | deniedBody: |
| 228 | "The link points at a base you can't open. Ask whoever shared it to grant you access, or pick one of your own.", |
| 229 | missingTitle: "This knowledge base is gone", |
| 230 | missingBody: |
| 231 | "It was deleted, or the link was mistyped. Your own bases are listed below.", |
| 232 | myKbs: "My knowledge bases", |
| 233 | }, |
| 234 | nav: { |
| 235 | workspaceLabel: "Workspace", |
| 236 | kbLabel: "Knowledge base", |
| 237 | ask: "Chat", |
| 238 | askHint: "Converse with your knowledge base — it can remember", |
| 239 | search: "Search", |
| 240 | searchHint: "Hybrid search", |
| 241 | graph: "Graph", |
| 242 | graphHint: "Entities & timelines", |
| 243 | library: "Library", |
| 244 | libraryHint: "Documents & ingestion", |
| 245 | settings: "Settings", |
| 246 | settingsHint: "Models & members", |
| 247 | signOut: "Sign out", |
| 248 | docs: "Docs", |
| 249 | loading: "Loading…", |
| 250 | serverUnreachable: |
| 251 | "Punishment 500: Utopia has gone quiet — it isn't answering.", |
| 252 | notFound: "Punishment 404: You are lost in Utopia.", |
| 253 | returnHome: "Return home", |
| 254 | reportIssue: "Report an issue", |
| 255 | refresh: "Refresh", |
| 256 | }, |
| 257 | login: { |
| 258 | signIn: "Sign in", |
| 259 | signUp: "Sign up", |
| 260 | displayName: "Display name", |
| 261 | email: "Email", |
| 262 | password: "Password (min. 8 characters)", |
| 263 | submitting: "One moment…", |
| 264 | createAccount: "Create account", |
| 265 | networkError: "Network error, please try again", |
| 266 | // 惯用同意句式:By continuing, you agree to the <Terms> and acknowledge the <Privacy>. |
| 267 | agreePrefix: "By continuing, you agree to the ", |
| 268 | agreeAnd: " and acknowledge the ", |
| 269 | agreeSuffix: ".", |
| 270 | githubUrl: "https://github.com/deeplethe/utopia", |
| 271 | }, |
| 272 | legal: { |
| 273 | privacyTitle: "Privacy policy", |
| 274 | termsTitle: "Terms of use", |
| 275 | backToSignIn: "← Back to sign in", |
| 276 | privacy: { |
| 277 | title: "Privacy policy", |
| 278 | note: "Default text bundled with Utopia. The organization operating this deployment may replace it with its own policy.", |
| 279 | sections: [ |
| 280 | { |
| 281 | h: "A self-hosted platform", |
| 282 | body: [ |
| 283 | "Utopia runs entirely on infrastructure chosen by the organization that deployed it (the operator). The Utopia project has no access to this deployment: the software sends no telemetry, no analytics and no crash reports to anyone.", |
| 284 | ], |
| 285 | }, |
| 286 | { |
| 287 | h: "What this instance stores", |
| 288 | body: ["Everything below lives on the operator's own servers:"], |
| 289 | bullets: [ |
| 290 | "Account details — your email address, display name and a hash of your password.", |
| 291 | "Content — uploaded documents, text extracted from them, search indexes and embeddings, and the knowledge graph (entities, relations and their sources) built from that content.", |
| 292 | "Activity — your conversations with the assistant, review decisions and ingestion logs, kept so the features that need them can work.", |
| 293 | ], |
| 294 | }, |
| 295 | { |
| 296 | h: "Where data can leave this server", |
| 297 | body: [ |
| 298 | "If the operator configures an external model provider for chat or embeddings, excerpts of documents and your messages are sent to that provider to answer questions and index content. Which provider — or whether a fully local model is used — is a deployment setting. Nothing else is sent anywhere.", |
| 299 | ], |
| 300 | }, |
| 301 | { |
| 302 | h: "Who can see what", |
| 303 | body: [ |
| 304 | "Access follows knowledge-base roles: viewers see the knowledge bases they were granted, editors can change content, admins manage members and settings. Deployment administrators can create accounts and see the user list.", |
| 305 | ], |
| 306 | }, |
| 307 | { |
| 308 | h: "Retention and deletion", |
| 309 | body: [ |
| 310 | "Deleting a document removes its stored content and index entries. Facts already extracted into the knowledge graph remain, with their provenance, until removed through Review. Deleting a knowledge base permanently removes its documents, graph and sources.", |
| 311 | ], |
| 312 | }, |
| 313 | { |
| 314 | h: "Questions", |
| 315 | body: [ |
| 316 | "This deployment is run by your organization. For questions about how your data is handled here, contact its administrator.", |
| 317 | ], |
| 318 | }, |
| 319 | ], |
| 320 | }, |
| 321 | terms: { |
| 322 | title: "Terms of use", |
| 323 | note: "Default text bundled with Utopia. The organization operating this deployment may replace it with its own terms.", |
| 324 | sections: [ |
| 325 | { |
| 326 | h: "About these terms", |
| 327 | body: [ |
| 328 | "This instance of Utopia is operated by the organization that deployed it, not by the Utopia project. Your use of it is governed by that organization's own policies; these default terms cover the basics until the operator replaces them.", |
| 329 | ], |
| 330 | }, |
| 331 | { |
| 332 | h: "Your account", |
| 333 | body: [ |
| 334 | "Keep your credentials to yourself. Administrators may create, suspend or remove accounts in line with the operator's policies.", |
| 335 | ], |
| 336 | }, |
| 337 | { |
| 338 | h: "Acceptable use", |
| 339 | body: [], |
| 340 | bullets: [ |
| 341 | "Upload only content you are authorized to store and share within your organization.", |
| 342 | "Respect access levels: do not attempt to view or change knowledge bases beyond the roles you were granted.", |
| 343 | "Do not use the platform to store or spread unlawful content.", |
| 344 | ], |
| 345 | }, |
| 346 | { |
| 347 | h: "AI-generated answers", |
| 348 | body: [ |
| 349 | "Answers from the assistant are generated from your organization's documents by a language model, with citations. They can be wrong or incomplete — verify against the cited sources before relying on them.", |
| 350 | ], |
| 351 | }, |
| 352 | { |
| 353 | h: "The software", |
| 354 | body: [ |
| 355 | "Utopia is open-source software provided “as is”, without warranty of any kind. Responsibility for operating this deployment — including backups, availability and compliance — lies with the operator.", |
| 356 | ], |
| 357 | }, |
| 358 | ], |
| 359 | }, |
| 360 | }, |
| 361 | library: { |
| 362 | title: "Library", |
| 363 | upload: "Upload files", |
| 364 | uploading: "Uploading…", |
| 365 | uploadFailed: "Upload failed", |
| 366 | dropHint: "Drag files here, or click “Upload files”", |
| 367 | formats: |
| 368 | "PDF · Word · Excel · PowerPoint · Markdown · HTML · TXT · CSV and more", |
| 369 | emptyPull: "No documents yet — they arrive when this source syncs.", |
| 370 | filterPlaceholder: "Filter by name", |
| 371 | filterNoMatch: "No documents match your filter.", |
| 372 | anyStatus: "Any extraction state", |
| 373 | statusFailed: "Failed", |
| 374 | statusDone: "Extracted", |
| 375 | statusQueued: "Queued", |
| 376 | statusExtracting: "Extracting", |
| 377 | statusNone: "Not extracted", |
| 378 | retryFailed: (n: number) => `Retry ${n} failed`, |
| 379 | retryQueued: (n: number) => `${n} queued for extraction`, |
| 380 | colFile: "File", |
| 381 | colStatus: "Status", |
| 382 | colGraph: "Graph", |
| 383 | colChunks: "Chunks", |
| 384 | colSize: "Size", |
| 385 | colSource: "Source", |
| 386 | delete: "Delete", |
| 387 | extract: "Extract", |
| 388 | reExtract: "Re-extract", |
| 389 | reprocess: "Reprocess", |
| 390 | // 抽取进度(当前视图内聚合,SSE 推动刷新) |
| 391 | extractProgress: (done: number, total: number) => |
| 392 | `Extracting · ${done} / ${total}`, |
| 393 | // 失败详情:chip 可点开,不再只有 tooltip |
| 394 | errorTitle: "Failure details", |
| 395 | errorParse: "Ingestion pipeline", |
| 396 | errorGraph: "Graph extraction", |
| 397 | copyError: "Copy", |
| 398 | errorCopied: "Error copied", |
| 399 | /* 抽取丢弃:事实抽出来了却没能落地。此前完全无声——图里少了东西,没人说得出少了什么 */ |
| 400 | dropsChip: (n: number) => `${n} dropped`, |
| 401 | dropsTitle: "Facts that did not land", |
| 402 | dropsNote: |
| 403 | "These were extracted from the document but blocked on the way in. " + |
| 404 | "Each line says why, and how many.", |
| 405 | dropsExample: "e.g.", |
| 406 | dropReason: { |
| 407 | attr_domain_mismatch: "Attribute on the wrong class", |
| 408 | subject_not_declared: "Subject type unknown", |
| 409 | attr_no_value: "Attribute had no value", |
| 410 | attr_datatype: "Value did not match the datatype", |
| 411 | low_confidence: "Below the confidence threshold", |
| 412 | object_missing: "Relation had no object", |
| 413 | malformed_item: "The model's item did not fit the schema", |
| 414 | truncated_reply: "The model's reply was cut off", |
| 415 | domain_mismatch: |
| 416 | "The subject does not fit the relation, and swapping would not help", |
| 417 | not_an_entity_name: "That name is a sentence, not a thing", |
| 418 | direction_corrected: |
| 419 | "Subject and object were swapped to match the signature", |
| 420 | } as Record<string, string>, |
| 421 | // 来源级重抽:不危险,只是费时费钱——轻确认,文案直说成本与保留项 |
| 422 | reExtractSource: "Re-extract", |
| 423 | reExtractTitle: "Re-extract this source?", |
| 424 | reExtractHint: (n: number, name: string) => |
| 425 | `All ${n} ready document${n === 1 ? "" : "s"} in “${name}” go through the extraction model again. ` + |
| 426 | `Existing merges, review decisions and confirmed facts are preserved.`, |
| 427 | reExtractConfirm: "Re-extract", |
| 428 | queuedDocs: (n: number) => `${n} document${n === 1 ? "" : "s"} queued`, |
| 429 | // 全库重建:毁灭性——打字级确认 |
| 430 | rebuild: "Rebuild graph", |
| 431 | rebuildTitle: "Rebuild the knowledge graph?", |
| 432 | rebuildHint: (docs: number, name: string) => |
| 433 | `Type “${name}” to confirm. Every entity, fact, merge and pending review in this knowledge base ` + |
| 434 | `is permanently removed, then all ${docs} document${docs === 1 ? "" : "s"} are re-extracted from scratch. ` + |
| 435 | `Documents, search indexes and the ontology are untouched; the decision ledger is kept.`, |
| 436 | rebuildConfirm: "Rebuild permanently", |
| 437 | rebuildDone: (e: number, f: number, q: number) => |
| 438 | `Cleared ${e} entities and ${f} facts · ${q} documents queued`, |
| 439 | status: { |
| 440 | pending: "Queued", |
| 441 | parsing: "Parsing", |
| 442 | indexing: "Indexing", |
| 443 | embedding: "Embedding", |
| 444 | ready: "Ready", |
| 445 | failed: "Failed", |
| 446 | }, |
| 447 | graphStatus: { |
| 448 | none: "—", |
| 449 | queued: "Queued", |
| 450 | extracting: "Extracting", |
| 451 | done: "Done", |
| 452 | failed: "Failed", |
| 453 | }, |
| 454 | sources: "Sources", |
| 455 | allDocs: "All documents", |
| 456 | uploads: "Uploads", |
| 457 | addSource: "Add source", |
| 458 | sourceKinds: { |
| 459 | folder: "Folder", |
| 460 | url: "URLs", |
| 461 | rss: "RSS feed", |
| 462 | api: "API", |
| 463 | custom: "Custom", |
| 464 | github_issues: "GitHub issues", |
| 465 | jira_issues: "Jira issues", |
| 466 | s3: "S3 / MinIO", |
| 467 | azure_blob: "Azure Blob", |
| 468 | gcs: "Google Cloud Storage", |
| 469 | webdav: "WebDAV", |
| 470 | notion: "Notion", |
| 471 | }, |
| 472 | sourceKindHints: { |
| 473 | folder: |
| 474 | "A plain folder. Select it and upload (or drag) files straight into it — nothing is watched or synced.", |
| 475 | url: "Fetches the listed web pages; changed pages update the same document.", |
| 476 | rss: "Subscribes to a feed; each entry becomes a document dated by its publish time.", |
| 477 | jira_issues: |
| 478 | "Syncs a Jira project's issues. **Each ticket, together with its field-level change " + |
| 479 | "history**, becomes one document — what changed from what to what, and when. " + |
| 480 | "One call fetches everything; no per-ticket round trips.", |
| 481 | github_issues: |
| 482 | "Syncs a repository's issues. **Each ticket, together with its state history**, becomes " + |
| 483 | "one document — when it was opened, closed, relabelled, reassigned, all dated. " + |
| 484 | "Without a token GitHub allows only 60 requests an hour.", |
| 485 | s3: |
| 486 | "Reads documents out of an S3 bucket, or anything speaking the same protocol " + |
| 487 | "(MinIO, Ceph, R2). **Leave the endpoint empty for AWS**; fill it in for a " + |
| 488 | "self-hosted one. Each object becomes a document dated by its last modification.", |
| 489 | azure_blob: |
| 490 | "Reads documents out of an Azure Blob container. Leave the endpoint empty for " + |
| 491 | "Azure itself; fill it in for Azurite or a gateway.", |
| 492 | gcs: |
| 493 | "Reads documents out of a Google Cloud Storage bucket. The service account JSON " + |
| 494 | "goes in whole — there is no file on the server to point at.", |
| 495 | webdav: |
| 496 | "Reads documents off a WebDAV share — Nextcloud, ownCloud, Synology, or anything " + |
| 497 | "else speaking the protocol. Walks folders one level at a time; each file becomes " + |
| 498 | "a document dated by its last modification.", |
| 499 | notion: |
| 500 | "Syncs the pages a Notion integration can see — share a page with the integration " + |
| 501 | "and it appears here. Dated by when the page was last edited, which is the page's " + |
| 502 | "own clock rather than ours.", |
| 503 | api: "External systems push JSON documents here, authenticated with this source's own token.", |
| 504 | custom: |
| 505 | "Polls a URL you control on a schedule — your service returns JSON items and Utopia keeps them in sync.", |
| 506 | memory: |
| 507 | "Episodes remembered from Chat. Append-only: contradicted memories close their " + |
| 508 | "validity range instead of being deleted — the timeline keeps the whole story.", |
| 509 | }, |
| 510 | ingestGuide: "Read the ingest guide →", |
| 511 | ingestGuideTitle: "Ingest interface guide", |
| 512 | endpointField: "Endpoint URL", |
| 513 | endpointCopied: "Endpoint URL copied", |
| 514 | copyEndpoint: "Click to copy the full URL", |
| 515 | // api 来源的推送状态(queued/running 不会出现,仅为类型完备) |
| 516 | pushStatus: { |
| 517 | never: "No pushes yet", |
| 518 | queued: "—", |
| 519 | running: "—", |
| 520 | ok: "Push received", |
| 521 | failed: "Push failed", |
| 522 | }, |
| 523 | tokenTitle: "Source token", |
| 524 | tokenWarning: |
| 525 | "Anyone holding this token can push documents into this source. Rotate it if it leaks — the old token stops working immediately.", |
| 526 | tokenUsage: "Send it with every push as:", |
| 527 | tokenCopied: "Token copied", |
| 528 | viewToken: "Token", |
| 529 | rotateToken: "Rotate", |
| 530 | noToken: "This source has no token yet — generate one to start pushing.", |
| 531 | generateToken: "Generate token", |
| 532 | close: "Close", |
| 533 | authHeaderField: "Authorization header (optional, never shown again)", |
| 534 | syncNow: "Sync now", |
| 535 | syncStatus: { |
| 536 | never: "Never synced", |
| 537 | queued: "Queued", |
| 538 | running: "Syncing…", |
| 539 | ok: "Synced", |
| 540 | failed: "Sync failed", |
| 541 | }, |
| 542 | lastSyncAdded: (n: number) => `+${n} last sync`, |
| 543 | sourceName: "Name", |
| 544 | urlsField: "Page URLs (one per line)", |
| 545 | feedUrl: "Feed URL", |
| 546 | repoField: "Repository (owner/name)", |
| 547 | jiraUrlField: "Jira site URL", |
| 548 | jiraProjectField: "Project key", |
| 549 | s3BucketField: "Bucket", |
| 550 | s3PrefixField: "Prefix (optional — without one the whole bucket is read)", |
| 551 | s3EndpointField: "Endpoint (leave empty for AWS S3)", |
| 552 | s3RegionField: "Region", |
| 553 | s3KeyField: "Access key ID", |
| 554 | s3SecretField: "Secret access key", |
| 555 | azAccountField: "Storage account name", |
| 556 | azKeyField: "Account key", |
| 557 | gcsKeyField: "Service account JSON (paste the whole file)", |
| 558 | davUrlField: "Server URL", |
| 559 | davPathField: "Folder (optional — defaults to the root)", |
| 560 | davUserField: "Username", |
| 561 | davPassField: "Password", |
| 562 | notionTokenField: "Internal integration token", |
| 563 | notionQueryField: "Search term (optional — empty takes every shared page)", |
| 564 | tokenField: "GitHub token (optional, never shown again)", |
| 565 | includePullRequests: "Treat pull requests as tickets too", |
| 566 | interval: "Sync schedule", |
| 567 | intervalManual: "Manual only", |
| 568 | intervalEvery: (m: number) => |
| 569 | m < 60 ? `Every ${m} min` : `Every ${m / 60} h`, |
| 570 | schedule: { |
| 571 | manual: "Manual", |
| 572 | interval: "Interval", |
| 573 | daily: "Daily", |
| 574 | weekly: "Weekly", |
| 575 | advanced: "Advanced", |
| 576 | every: "Every", |
| 577 | minutes: "minutes", |
| 578 | hours: "hours", |
| 579 | at: "at", |
| 580 | cronPlaceholder: "Enter a cron expression", |
| 581 | whatIsCron: "What is cron?", |
| 582 | cronDocsUrl: "https://crontab.guru", |
| 583 | daysShort: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], |
| 584 | dailyAt: (t: string) => `Daily ${t}`, |
| 585 | }, |
| 586 | createSource: "Create", |
| 587 | cancel: "Cancel", |
| 588 | deleteSource: "Delete source", |
| 589 | deleteSourceHint: "Documents are kept and move to Uploads.", |
| 590 | newSourceTitle: "New source", |
| 591 | iconLabel: "Icon", |
| 592 | pageOf: (from: number, to: number, total: number) => |
| 593 | `${from}–${to} of ${total}`, |
| 594 | syncHistory: "History", |
| 595 | runNew: (n: number) => `+${n} new`, |
| 596 | runUpdated: (n: number) => `~${n} updated`, |
| 597 | runNothing: "no changes", |
| 598 | noRuns: "No syncs recorded yet.", |
| 599 | sourceSettings: "Source settings", |
| 600 | editSourceTitle: "Source settings", |
| 601 | saveChanges: "Save changes", |
| 602 | authHeaderEditField: "Authorization header", |
| 603 | authKeepHint: "Leave blank to keep the current value.", |
| 604 | editKeepNote: |
| 605 | "Changing what this source fetches never deletes existing documents. " + |
| 606 | "Items the new configuration no longer returns are marked “Not in source” " + |
| 607 | "after the next sync. Switching to a different service entirely? Create a new source instead.", |
| 608 | notInSource: "Not in source", |
| 609 | cleanupMissing: (n: number) => `Clean up ${n} missing`, |
| 610 | cleanupTitle: "Delete missing documents", |
| 611 | cleanupHint: (n: number, name: string) => |
| 612 | `${n} document${n === 1 ? "" : "s"} in “${name}” ${n === 1 ? "is" : "are"} no longer ` + |
| 613 | "present in the source. Deleting removes their content and search entries permanently. " + |
| 614 | "Facts already extracted into the graph remain, with their provenance.", |
| 615 | cleanupConfirm: "Delete them", |
| 616 | deleteSourceTitle: "Delete this source", |
| 617 | deleteSourceBody: (name: string) => |
| 618 | `Type “${name}” to confirm. Documents are kept and move to Uploads; ` + |
| 619 | "scheduled syncing stops.", |
| 620 | dangerZone: "Danger zone", |
| 621 | }, |
| 622 | search: { |
| 623 | placeholder: "Search the knowledge base… (keyword + semantic)", |
| 624 | button: "Search", |
| 625 | searching: "Searching…", |
| 626 | noResults: "No results found", |
| 627 | chunkOf: (filename: string, seq: number) => `${filename} · section ${seq}`, |
| 628 | }, |
| 629 | ask: { |
| 630 | /* 新对话首屏问候:碑铭衬线,品牌名入句(标题不带句号) */ |
| 631 | greeting: "Ask Utopia what it remembers", |
| 632 | emptyTitle: "Chat", |
| 633 | emptyBody: |
| 634 | "Converse with your knowledge base — cited answers, temporal questions, and it can remember.\nUpload documents in Library and configure a model in Settings first.", |
| 635 | placeholder: "Ask anything…", |
| 636 | composerHint: "Enter to send · Shift+Enter for a new line", |
| 637 | scopeLabel: "Knowledge base", |
| 638 | send: "Send", |
| 639 | stop: "Stop", |
| 640 | thinking: "Thinking…", |
| 641 | newChat: "New chat", |
| 642 | untitled: "Untitled", |
| 643 | noConversations: "No conversations yet.", |
| 644 | deleteConversation: "Delete conversation", |
| 645 | searchConversations: "Search chats", |
| 646 | moreActions: "More", |
| 647 | rename: "Rename", |
| 648 | copyTitle: "Copy title", |
| 649 | deleteTitle: "Delete conversation?", |
| 650 | deleteHint: (name: string) => |
| 651 | `“${name}” and its messages will be permanently removed.`, |
| 652 | deleteBtn: "Delete", |
| 653 | cancel: "Cancel", |
| 654 | }, |
| 655 | graph: { |
| 656 | // 还没判出类型的实体(0009)。不是一个类,是"这一格还空着" |
| 657 | untyped: "Untyped", |
| 658 | legendMore: (n: number) => `All ${n} classes`, |
| 659 | nodeBudget: "How many entities to draw", |
| 660 | nodeBudgetMore: "Draw more", |
| 661 | nodeBudgetLess: "Draw fewer", |
| 662 | legendSearch: "Filter classes", |
| 663 | legendNone: "No class matches", |
| 664 | legendOnly: "Only", |
| 665 | legendShowAll: (n: number) => `Show all (${n} hidden)`, |
| 666 | legendAllHint: |
| 667 | "Every class on screen, most common first. Click to show or hide.", |
| 668 | searchMore: (n: number) => `${n} more — load 20`, |
| 669 | zoomIn: "Zoom in", |
| 670 | zoomOut: "Zoom out", |
| 671 | fitView: "Fit view", |
| 672 | layoutForce: "Force layout", |
| 673 | layoutCircular: "Circular layout", |
| 674 | layoutPack: "Cluster by type", |
| 675 | searchEntity: "Search entities…", |
| 676 | searchInSubgraph: "Search in subgraph…", |
| 677 | backToOverview: "← Full graph", |
| 678 | // 顺序不是随便排的:模型没配好之前,上传的文档只会排队等着, |
| 679 | // 一个实体也抽不出来。先配模型,再传文档 |
| 680 | emptyBody: |
| 681 | "The graph is empty. Configure a chat model in Settings first, then upload documents in the Library — entities and relations are extracted automatically.", |
| 682 | facts: "facts", |
| 683 | noFacts: "No facts for this entity yet", |
| 684 | confidence: "confidence", |
| 685 | evidence: "evidence", |
| 686 | noEvidence: "No evidence recorded", |
| 687 | noQuote: "(no quote)", |
| 688 | /* 抽取器从原文读出来的谓词,规范成了标识符。词表外的说法会被降级成 |
| 689 | related to,原意只在这里活着。 |
| 690 | **措辞不能宣称这是引文**:关系 key 只能是 [a-z0-9_],所以中文语料里 |
| 691 | 「采购了」出来是 purchases——说"原文说的是 purchases"是假的。 |
| 692 | 逐字原句就在旁边的证据引文里,没丢。 */ |
| 693 | proposedPredicate: (p: string) => `read from the text as “${p}”`, |
| 694 | inferredPredicate: |
| 695 | "not a relation in the ontology, this is the source's wording", |
| 696 | unknownPredicate: "no relation stated", |
| 697 | sectionRef: (filename: string, seq: number) => |
| 698 | `${filename} · section ${seq} →`, |
| 699 | fromVersion: (v: number) => `v${v}`, |
| 700 | staleEvidenceHint: |
| 701 | "This evidence comes from an earlier version of the document. " + |
| 702 | "The document has since been updated; the fact itself is unaffected.", |
| 703 | staleFactChip: "unconfirmed", |
| 704 | staleFactHint: |
| 705 | "All evidence for this fact comes from earlier versions of its source documents — " + |
| 706 | "the current content no longer states it. It may still be true; review it under Review.", |
| 707 | /* 实体修正:抽取给的是初判,人可以推翻它 */ |
| 708 | edit: "Edit", |
| 709 | editName: "Name", |
| 710 | editType: "Type", |
| 711 | editSave: "Save", |
| 712 | editCancel: "Cancel", |
| 713 | editSaved: "Entity updated", |
| 714 | editEmptyName: "Name cannot be empty", |
| 715 | /* 同名不是错误——两个张伟可以并存。只提示,不阻断 */ |
| 716 | sameNameNote: (n: number) => |
| 717 | n === 1 |
| 718 | ? "One other entity shares this name." |
| 719 | : `${n} other entities share this name.`, |
| 720 | sameNameHint: "If they are the same thing, merge them under Review.", |
| 721 | mergeInto: "Merge in", |
| 722 | mergeIntoHint: |
| 723 | "Fold that entity into this one. Its facts move here; merges can be reverted.", |
| 724 | mergeConfirm: (from: string, into: string) => |
| 725 | `Merge “${from}” into “${into}”? Its facts move here. You can revert this from Review.`, |
| 726 | viewRelations: "Relations", |
| 727 | viewTimeline: "Timeline", |
| 728 | /* 第三视图:记录时间轴——不是"事情何时发生",而是"我们何时这么认为" */ |
| 729 | viewHistory: "History", |
| 730 | viewDerived: "Derived", |
| 731 | derivedEdges: (n: number) => `${n} derived`, |
| 732 | derivedHint: |
| 733 | "Edges no one asserted — the engine worked them out from axioms your ontology declares. Each one shows the premises it came from.", |
| 734 | derivedNoProof: "The premises are gone.", |
| 735 | /* 争议(0017 §3) */ |
| 736 | contestedChip: "disputed", |
| 737 | contestedHint: (kind: string, derived: string | null) => |
| 738 | kind === "derived_contradiction" |
| 739 | ? `A derivation contradicts this assertion${derived ? `: ${derived}` : ""}. Open it under Review.` |
| 740 | : kind === "temporal_conflict" |
| 741 | ? "A newer assertion conflicts with this one in time. Open it under Review." |
| 742 | : "This assertion breaks an axiom the ontology declares. Open it under Review.", |
| 743 | blockedTitle: "Did not land", |
| 744 | blockedHint: |
| 745 | "The engine could draw these edges; an assertion stood in the way. They show on the graph as ghost edges.", |
| 746 | blockedBy: (t: string) => `blocked by ${t}`, |
| 747 | blockedReview: "Review", |
| 748 | /** 证明链(0002 R2):每一步是一条断言前提,展开到原句 */ |
| 749 | proofStep: (n: number) => `Step ${n}`, |
| 750 | proofRetracted: "since retracted", |
| 751 | proofLoading: "Tracing the proof…", |
| 752 | derivedPanel: "Inference", |
| 753 | derivedRunAsk: "Re-run inference for the whole base?", |
| 754 | derivedRunGo: "Run", |
| 755 | derivedRunCancel: "Cancel", |
| 756 | derivedCountLabel: "Edges derived", |
| 757 | derivedStateLabel: "Schedule", |
| 758 | derivedLastLabel: "Last run", |
| 759 | derivedOn: (mins: number) => `every ${mins} min`, |
| 760 | derivedOff: "off", |
| 761 | derivedNever: "never", |
| 762 | derivedAgo: (mins: number) => |
| 763 | mins < 1 |
| 764 | ? "just now" |
| 765 | : mins < 60 |
| 766 | ? `${mins} min ago` |
| 767 | : `${Math.round(mins / 60)} h ago`, |
| 768 | derivedRun: "Run now", |
| 769 | derivedRunning: "Running…", |
| 770 | derivedNoChange: "Nothing changed.", |
| 771 | derivedChanged: (added: number, gone: number) => |
| 772 | `${added} added · ${gone} retracted`, |
| 773 | derivedCapped: (n: number) => `${n} predicate(s) not closed fully`, |
| 774 | close: "Close", |
| 775 | // 派生边靠哪条规则来的。**四种都要有**——查不到的会退回原始 kind 串, |
| 776 | // 而那对读的人没有意义 |
| 777 | ruleNames: { |
| 778 | transitive: "transitive", |
| 779 | symmetric: "symmetric", |
| 780 | inverse: "inverse", |
| 781 | sub_property: "sub-property", |
| 782 | } as Record<string, string | undefined>, |
| 783 | historyHint: "How this entity's record changed — and who changed it.", |
| 784 | historyEmpty: "Nothing recorded for this entity yet.", |
| 785 | historyKind: { |
| 786 | asserted: "Recorded", |
| 787 | corrected: "Interval corrected", |
| 788 | rejected: "Withdrawn", |
| 789 | /* 并入另一条断言:内容一字未少,不是撤回 */ |
| 790 | merged: "Merged into an existing fact", |
| 791 | /* 改的是节点上的类,一条事实都没动 */ |
| 792 | retyped: "Type changed", |
| 793 | retype_reverted: "Type change undone", |
| 794 | } as Record<string, string>, |
| 795 | historyEngine: "engine", |
| 796 | /* 有效区间的变化:修正后区间闭合到某个时点 */ |
| 797 | historyClosedAt: (t: string) => `closed at ${t}`, |
| 798 | historyFrom: (t: string) => `from ${t}`, |
| 799 | historyOngoing: "open-ended", |
| 800 | historicalNote: (n: number) => |
| 801 | `${n} past fact${n === 1 ? "" : "s"} not shown — see Timeline →`, |
| 802 | undated: "Undated", |
| 803 | timelineEmpty: "No dated facts yet.", |
| 804 | lastConfirmed: (d: string) => `confirmed ${d}`, |
| 805 | correctedHint: |
| 806 | "This interval was closed by reconciliation (automatic succession or a review decision), " + |
| 807 | "not stated verbatim in a document. The superseded assertion remains in the ledger.", |
| 808 | ongoing: "now", |
| 809 | /* 必须跟 ongoing 看得出区别:混淆这两个正是迁移 0046 要修的东西—— |
| 810 | 原文说 "former CEO",界面却显示 now */ |
| 811 | endedUnknown: "ended, date unknown", |
| 812 | stats: (n: number, e: number, active: number | null) => |
| 813 | `${n} entities · ${e} facts${active === null ? "" : ` · ${active} active`}`, |
| 814 | /** 画布只画度数最高的一批。**说清楚画了多少、共多少**——从前这里写的是 |
| 815 | * 上限,一个上万实体的库右上角永远是 150 */ |
| 816 | statsCapped: ( |
| 817 | shown: number, |
| 818 | total: number, |
| 819 | shownE: number, |
| 820 | totalE: number, |
| 821 | active: number | null, |
| 822 | ) => |
| 823 | `showing ${shown} of ${total} entities · ${shownE} of ${totalE} facts${active === null ? "" : ` · ${active} active`}`, |
| 824 | cappedHint: (shown: number, total: number) => |
| 825 | `The canvas draws the ${shown} best-connected entities of ${total}. Search to reach the rest.`, |
| 826 | stabilizing: "Stabilizing layout", |
| 827 | scrubUnitHint: "Step size for playback and for each bar", |
| 828 | scrubUnitYear: "Yr", |
| 829 | scrubUnitMonth: "Mo", |
| 830 | scrubUnitDay: "Dy", |
| 831 | scrubBarMerged: (n: number) => `each bar covers ${n} steps`, |
| 832 | allTime: "All time", |
| 833 | nowBtn: "Now", |
| 834 | play: "Play timeline", |
| 835 | pause: "Pause", |
| 836 | }, |
| 837 | doc: { |
| 838 | backToLibrary: "← Back to Library", |
| 839 | sections: "sections", |
| 840 | section: "Section", |
| 841 | citedHere: "← cited here", |
| 842 | loading: "Loading…", |
| 843 | extracted: "Extracted", |
| 844 | ongoing: "now", |
| 845 | }, |
| 846 | settings: { |
| 847 | title: "System settings", |
| 848 | tabModels: "Models", |
| 849 | tabMembers: "Users", |
| 850 | tabKbs: "Knowledge bases", |
| 851 | tabDeployment: "Deployment", |
| 852 | newUser: "Create user", |
| 853 | initialPassword: "Initial password (min. 8 characters)", |
| 854 | createUserBtn: "Create", |
| 855 | searchUsers: "Filter by name or email…", |
| 856 | deployment: { |
| 857 | openReg: "Allow self-registration", |
| 858 | openRegHint: |
| 859 | "When off, the sign-up form is closed and only admins can create accounts here.", |
| 860 | workers: "Background workers", |
| 861 | workersHint: |
| 862 | "An outer ceiling on how many jobs run at once (1–256), there to stop work piling up " + |
| 863 | "without bound. The real throttle is the per-model limit below, so keep this comfortably " + |
| 864 | "above the sum of those. Takes effect immediately.", |
| 865 | workersApply: "Apply", |
| 866 | /* 真正的节流:约束来自供应商的速率限制,而那是按模型算的 */ |
| 867 | modelConcurrency: "Model concurrency", |
| 868 | modelConcurrencyHint: |
| 869 | "How many calls a model will take at once. The limit that matters belongs to the " + |
| 870 | "provider and is per model — a local Ollama may manage two, a hosted API fifty. " + |
| 871 | "Background work (extraction, resolution, indexing) waits for a slot; chat and search " + |
| 872 | "never do. Takes effect immediately.", |
| 873 | /* 部署级默认值:新建库时用。名字刻意不叫"系统语言" */ |
| 874 | ontologyLang: "Default ontology language", |
| 875 | ontologyLangHint: |
| 876 | "The language new knowledge bases start their ontology in — class descriptions go " + |
| 877 | "into the extraction prompt, so this follows the documents you expect, not the " + |
| 878 | "interface. Each knowledge base can change its own afterwards. " + |
| 879 | "Interface language is a per-reader choice in the account menu.", |
| 880 | modelDefault: "Default", |
| 881 | modelReset: "Reset", |
| 882 | modelResetHint: |
| 883 | "Drop this model's own limit and fall back to the default.", |
| 884 | }, |
| 885 | datasources: { |
| 886 | tab: "Data sources", |
| 887 | title: "Data sources", |
| 888 | hint: |
| 889 | "Read-only database connections for asking questions about your data in Chat. " + |
| 890 | "Register connections here; each knowledge base mounts the ones it may query.", |
| 891 | name: "Name", |
| 892 | connString: "Connection string — the scheme picks the engine", |
| 893 | // 四种写法各一行;令牌放 password 位,Databricks 的路径就是控制台里的 httpPath |
| 894 | connSchemes: |
| 895 | "postgres://user:pass@host:5432/db\n" + |
| 896 | "trino://user[:pass]@host:8080/catalog[/schema] (Iceberg, Delta Lake, Hive)\n" + |
| 897 | "databricks://:TOKEN@host/sql/1.0/warehouses/ID?catalog=main\n" + |
| 898 | "snowflake://:TOKEN@account.snowflakecomputing.com/DB/SCHEMA?warehouse=WH", |
| 899 | add: "Add data source", |
| 900 | test: "Test", |
| 901 | testOk: "Connected", |
| 902 | testFail: "Failed", |
| 903 | neverTested: "Untested", |
| 904 | remove: "Remove", |
| 905 | grants: "Available to", |
| 906 | grantsHint: |
| 907 | "Which workspaces may use this source. **Once granted, KB admins in those workspaces choose whether to mount it** — " + |
| 908 | "this controls what they can reach, not what they have mounted.", |
| 909 | grantsNone: |
| 910 | "Not granted to any workspace — no knowledge base can mount it.", |
| 911 | grantAdd: "Grant a workspace…", |
| 912 | grantRevoke: "Revoke", |
| 913 | grantRevoked: (n: number) => |
| 914 | n === 0 |
| 915 | ? "Revoked." |
| 916 | : `Revoked, and unmounted it from ${n} knowledge base(s).`, |
| 917 | }, |
| 918 | kbs: { |
| 919 | hint: |
| 920 | "Every knowledge base in this deployment. Open ones are readable by all members; " + |
| 921 | "restricted ones are invite-only. Creating a knowledge base is an admin action — " + |
| 922 | "members switch between them from the top bar.", |
| 923 | defaultChip: "Default", |
| 924 | newKb: "New knowledge base", |
| 925 | packsLabel: "Bundled ontologies", |
| 926 | packsHint: |
| 927 | "Optional. Packs declare direction, so subject and object cannot come out reversed. More can be imported later.", |
| 928 | packsNone: "None — start from the ten seed relations", |
| 929 | packsCount: (c: number, p: number) => `${c} classes · ${p} properties`, |
| 930 | name: "Name", |
| 931 | description: "Description", |
| 932 | visibility: "Visibility", |
| 933 | visOpen: "Open — everyone in this deployment", |
| 934 | visRestricted: "Invited only", |
| 935 | create: "Create", |
| 936 | openSettings: "Settings", |
| 937 | docs: (n: number) => `${n} docs`, |
| 938 | }, |
| 939 | modelsIntro: |
| 940 | "OpenAI-compatible protocol — DeepSeek, Qwen, GLM, Ollama, vLLM all work. Fully on-prem friendly.", |
| 941 | chatModel: "Chat model", |
| 942 | embedModel: "Embedding model (optional, enables semantic search)", |
| 943 | baseUrl: "Base URL", |
| 944 | model: "Model", |
| 945 | apiKey: "API key", |
| 946 | keyConfigured: "(configured — leave blank to keep)", |
| 947 | save: "Save", |
| 948 | saving: "Saving…", |
| 949 | saved: "Saved", |
| 950 | test: "Test connection", |
| 951 | testing: "Testing…", |
| 952 | chatLabel: "Chat", |
| 953 | embedLabel: "Embedding", |
| 954 | ok: (reply: string) => `Connected (${reply})`, |
| 955 | okDim: (dim: number) => `Connected (dim ${dim})`, |
| 956 | }, |
| 957 | ontology: { |
| 958 | title: "Ontology", |
| 959 | hint: "Classes & properties", |
| 960 | tabClasses: "Classes", |
| 961 | tabProperties: "Properties", |
| 962 | newClass: "New class", |
| 963 | newSubClass: "+ Sub-class", |
| 964 | newProperty: "New property", |
| 965 | filter: "Filter…", |
| 966 | missesShort: "Unmatched", |
| 967 | refineShort: "Refine types", |
| 968 | refineTitle: "Refine types", |
| 969 | refineHint: |
| 970 | "Entities whose class is roughly right but not the most specific one available. Look first, then apply — retyping does not appear on any timeline, so this is the only place you get to see it before it happens.", |
| 971 | refinePreview: "Look first", |
| 972 | refineLooking: "Looking…", |
| 973 | refineRun: "Run and apply", |
| 974 | refineRunning: "Running…", |
| 975 | refineNothing: "Nothing to refine.", |
| 976 | refineCandidates: (n: number) => `${n} entities would be considered`, |
| 977 | refineNoCandidates: "Retrieval found no class for this one.", |
| 978 | refineModelSays: (t: string) => `the model called it “${t}”`, |
| 979 | refineRetyped: (n: number) => `${n} retyped automatically`, |
| 980 | refineUndo: "Undo this batch", |
| 981 | refineUndone: (n: number) => `${n} put back`, |
| 982 | refineForReview: (n: number) => `${n} need your call`, |
| 983 | refineCrossesAxis: "different axis", |
| 984 | refineApprovePair: "Approve this class pair", |
| 985 | refineLeftAlone: (n: number) => `${n} left alone`, |
| 986 | refineTopCandidate: (c: string) => `closest class was ${c}`, |
| 987 | instances: "Instances", |
| 988 | instanceFacts: (n: number) => `${n} facts`, |
| 989 | description: "Description", |
| 990 | descriptionHint: |
| 991 | "Guides the extractor: what belongs here, with a couple of examples. Fed straight into the extraction prompt.", |
| 992 | overviewHint: |
| 993 | "The schema your extractor follows. Select a class or property on the left to edit it, or add new ones with the + buttons.", |
| 994 | overviewStats: (c: number, p: number) => `${c} classes · ${p} properties`, |
| 995 | attributes: "Attributes", |
| 996 | attributesHint: |
| 997 | "Literal-valued fields of this class (a person's salary, a contract's amount). Extracted with evidence and history, like any fact.", |
| 998 | newAttribute: "New attribute", |
| 999 | attrDatatype: "Value type", |
| 1000 | attrUnit: "Unit", |
| 1001 | attrUnitHint: "optional — e.g. CNY, %", |
| 1002 | attrSingle: "Single-valued — a new value closes the previous one", |
| 1003 | datatypeNames: { |
| 1004 | text: "Text", |
| 1005 | number: "Number", |
| 1006 | date: "Date", |
| 1007 | bool: "Yes / no", |
| 1008 | } as Record<string, string>, |
| 1009 | cancel: "Cancel", |
| 1010 | key: "Key", |
| 1011 | label: "Label", |
| 1012 | color: "Color", |
| 1013 | shapeColor: "Shape & color", |
| 1014 | parent: "Parent class", |
| 1015 | noParent: "(top level)", |
| 1016 | disjoint: "Cannot also be", |
| 1017 | disjointHint: |
| 1018 | "Classes nothing can belong to at the same time. A Person is not an Organisation. The consistency check uses this to find classes that can never have an instance.", |
| 1019 | noDisjoint: "No class excluded", |
| 1020 | disjointWithParent: |
| 1021 | "This class inherits from a class it says it cannot be — nothing could ever satisfy it.", |
| 1022 | /* 多父时左栏只能画一处,说明画在哪一支下 */ |
| 1023 | primaryParentHint: "Shown in the tree under the first one.", |
| 1024 | /* 类型签名。措辞要说清它是引导不是闸门——本体写错时模型仍可覆盖 */ |
| 1025 | signature: "Type signature", |
| 1026 | signatureHint: |
| 1027 | "Which classes this relation connects. It goes into the extraction prompt as a hint, " + |
| 1028 | "not a gate: it steers the model as it writes, and the text still wins when the " + |
| 1029 | "ontology is wrong.", |
| 1030 | domainLabel: "Subject", |
| 1031 | rangeLabel: "Object", |
| 1032 | anyType: "Any type", |
| 1033 | searchTypes: "Search classes…", |
| 1034 | temporal: "Temporal semantics", |
| 1035 | temporalState: "State (has interval)", |
| 1036 | temporalEvent: "Event (point in time)", |
| 1037 | temporalEternal: "Eternal (timeless)", |
| 1038 | functional: "Functional (single value at a time)", |
| 1039 | inverseFunctional: "Inverse functional (one subject per object at a time)", |
| 1040 | axioms: "Axioms", |
| 1041 | axiomsHint: |
| 1042 | "What this relation guarantees. These are not descriptions — they change what the system does: the temporal engine closes old values, and the reasoning engine adds edges to the graph.", |
| 1043 | functionalHint: |
| 1044 | "One subject, one value at a time. A new value closes the old one.", |
| 1045 | inverseFunctionalHint: "One object, one subject. A project has one lead.", |
| 1046 | transitive: "Transitive", |
| 1047 | transitiveHint: "A→B and B→C means A→C. The engine will add those edges.", |
| 1048 | symmetric: "Symmetric", |
| 1049 | symmetricHint: "A→B means B→A. The engine will add the other direction.", |
| 1050 | asymmetric: "Asymmetric", |
| 1051 | asymmetricHint: |
| 1052 | "A→B rules out B→A. Both directions get reported as a contradiction.", |
| 1053 | irreflexive: "Irreflexive", |
| 1054 | irreflexiveHint: "Nothing can point at itself through this relation.", |
| 1055 | axiomConflict: |
| 1056 | "Symmetric and asymmetric together hold only for a relation with no facts at all — one of the two is wrong.", |
| 1057 | noLink: "None", |
| 1058 | inverseOf: "Inverse", |
| 1059 | inverseOfHint: |
| 1060 | "The relation that says the same thing the other way round. Declare it on one side only — the other direction follows.", |
| 1061 | subPropertyOf: "Super-property", |
| 1062 | subPropertyOfHint: |
| 1063 | "The broader relation this one is a special case of. Stating the specific one also states the broader one.", |
| 1064 | linkMeansInverse: (p: string, q: string) => |
| 1065 | `A ${p} B also means B ${q} A.`, |
| 1066 | linkMeansSuper: (p: string, q: string) => `A ${p} B also means A ${q} B.`, |
| 1067 | usage: (n: number) => `${n} in use`, |
| 1068 | builtin: "built-in", |
| 1069 | save: "Save", |
| 1070 | delete: "Delete", |
| 1071 | deleteBlocked: "In use — cannot delete", |
| 1072 | /* ---- OWL / RDFS 导入 ---- */ |
| 1073 | importShort: "Import", |
| 1074 | importTitle: "Import an ontology", |
| 1075 | importHint: |
| 1076 | "Load an OWL or RDFS file (.owl, .rdf, .ttl). Classes and properties are matched by IRI, so re-importing a newer version of the same vocabulary updates what it already created instead of duplicating it.", |
| 1077 | importPick: "Choose file", |
| 1078 | importChange: "Choose another", |
| 1079 | importReading: "Reading…", |
| 1080 | importApplying: "Importing…", |
| 1081 | importApply: "Import", |
| 1082 | importCancel: "Cancel", |
| 1083 | importParsed: (fmt: string, triples: number) => |
| 1084 | `${fmt === "rdfxml" ? "RDF/XML" : "Turtle"} · ${triples.toLocaleString()} triples`, |
| 1085 | importNothing: |
| 1086 | "Nothing to import — no classes or properties found in this file.", |
| 1087 | /* 计划三列:新建 / 更新 / key 被占 */ |
| 1088 | importWillCreate: (n: number) => `${n} new`, |
| 1089 | importWillUpdate: (n: number) => `${n} updated`, |
| 1090 | importKeyTaken: (n: number) => `${n} skipped`, |
| 1091 | importClasses: "Classes", |
| 1092 | importRelations: "Relations", |
| 1093 | importAttributes: "Attributes", |
| 1094 | /* 属性还落不了库:它们要 domain,而 domain 要等类先建好并解析 IRI */ |
| 1095 | importAttributesLater: |
| 1096 | "Parsed, but not created yet — attributes need a class to hang from, which lands in the next step.", |
| 1097 | /* 预览必须警告的第一件事:functional 会让时序引擎自动关掉旧事实。 |
| 1098 | part_of 那次一个错误的唯一性声明造了 59 条假冲突 */ |
| 1099 | warnFunctional: (n: number) => |
| 1100 | `${n} ${n === 1 ? "relation declares" : "relations declare"} itself functional`, |
| 1101 | warnFunctionalBody: |
| 1102 | "A functional relation may hold one value at a time, so a new fact automatically closes the previous one. When the vocabulary claims uniqueness your data does not keep, that shows up as a queue of conflicts. Review these after importing.", |
| 1103 | /* 第二件事:description 逐字进抽取提示词,没有它的类抽得明显差 */ |
| 1104 | warnNoDescription: (n: number) => |
| 1105 | `${n} ${n === 1 ? "class arrives" : "classes arrive"} with no description`, |
| 1106 | warnNoDescriptionBody: |
| 1107 | "A class description goes verbatim into the extraction prompt — it is the only thing telling the model what belongs there. Write one for these, or they will quietly under-extract.", |
| 1108 | /* key 撞了:报告不解决。自动加后缀会让下次重导入认不出自己上次建的是哪个 */ |
| 1109 | warnKeyTaken: (n: number) => |
| 1110 | `${n} ${n === 1 ? "key is" : "keys are"} already taken`, |
| 1111 | warnKeyTakenBody: |
| 1112 | "Something else already holds this key under a different identity. These are left alone — rename the existing one first if you want the imported version instead.", |
| 1113 | /* 占位者没有 IRI = 这库里手工建的或内置的,那句话比一个空 IRI 有用 */ |
| 1114 | importTakenBy: (iri: string | null) => |
| 1115 | iri |
| 1116 | ? `taken by ${iri}` |
| 1117 | : "taken by an entry defined in this knowledge base", |
| 1118 | /* 出现过但今天不投影的公理,按名字与次数列出——"暂未投影"不是"已跳过" */ |
| 1119 | importUnprojected: "Not projected yet", |
| 1120 | importUnprojectedBody: |
| 1121 | "Axioms this file uses that Utopia does not consume yet. Nothing is lost: the source file is stored as uploaded, so a later version can project them.", |
| 1122 | importDone: (created: number, updated: number) => |
| 1123 | `Imported — ${created} classes created, ${updated} updated.`, |
| 1124 | importHistory: "Previous imports", |
| 1125 | importNoHistory: "No imports yet.", |
| 1126 | importBy: (who: string, when: string) => `${who} · ${when}`, |
| 1127 | importSize: (bytes: number) => |
| 1128 | bytes < 1024 ? `${bytes} B` : `${(bytes / 1024).toFixed(0)} KB`, |
| 1129 | misses: "Unmatched from extraction", |
| 1130 | missesHint: |
| 1131 | "The extractor produced these outside your ontology (they fell back to concept / related to). They are signals for extending the ontology.", |
| 1132 | dismiss: "Dismiss", |
| 1133 | dismissed: (n: number) => `Dismissed (${n})`, |
| 1134 | /* 数字是**忽略之后**还在涨的那个——这一行的全部意义就在于此: |
| 1135 | 当初"只出现过一次"的判断依据可能早就不成立了 */ |
| 1136 | dismissedHint: |
| 1137 | "Still counted, but kept out of suggestions. If one has grown since you dismissed it, restore it.", |
| 1138 | restore: "Restore", |
| 1139 | suggest: "Suggest with AI", |
| 1140 | suggesting: "Analyzing…", |
| 1141 | noMisses: "No unmatched types — the ontology covers your corpus.", |
| 1142 | approve: "Add", |
| 1143 | /* 映射那一档的按钮。刻意不叫 Add——它不加东西,本体里已经有了。 |
| 1144 | 两个按钮都写 Add 的话,"已经有了"这件事在界面上就消失了 */ |
| 1145 | mapOver: "Use existing", |
| 1146 | /* 影响面:采纳一个提案会把多少条无谓词事实认过去。 |
| 1147 | 没有这一句,"Add" 只是凭空多一个空关系 */ |
| 1148 | willRemap: (n: number) => |
| 1149 | n === 1 ? "reclassifies 1 fact" : `reclassifies ${n} facts`, |
| 1150 | adopted: (n: number) => |
| 1151 | n === 1 |
| 1152 | ? "Added — 1 fact reclassified" |
| 1153 | : `Added — ${n} facts reclassified`, |
| 1154 | /* 一部分值换不动这个类型就没被改写。只报改写了多少条是报喜不报忧 */ |
| 1155 | adoptedPartly: (moved: number, left: number) => |
| 1156 | `Added — ${moved} reclassified, ${left} left behind (value did not fit the type)`, |
| 1157 | /* 撤销:采纳改写了成批事实,没有回头路的话没人敢点第一下 */ |
| 1158 | undoAdopt: (key: string, n: number) => |
| 1159 | `${key} added, ${n} fact${n === 1 ? "" : "s"} reclassified`, |
| 1160 | undoAdoptBtn: "Undo", |
| 1161 | reverted: (n: number) => |
| 1162 | n === 1 ? "Reverted — 1 fact restored" : `Reverted — ${n} facts restored`, |
| 1163 | undoKeepsRelation: "The relation stays; only the facts move back.", |
| 1164 | /* 撤销要二次确认:它一次改回成批事实 */ |
| 1165 | undoTitle: "Undo this ontology change?", |
| 1166 | undoHint: (n: number) => |
| 1167 | `${n} fact${n === 1 ? "" : "s"} will go back to “related to”. The relation itself stays — ` + |
| 1168 | `nothing is deleted, and you can adopt it again later.`, |
| 1169 | undoConfirm: "Undo", |
| 1170 | undoCancel: "Keep", |
| 1171 | /* 自动扩本体的通知:默认开启的前提是它的动作可见且可退。 |
| 1172 | 只记在审计台账里不算可见——那是查证用的,不是通知用的 */ |
| 1173 | autoRanTitle: "Utopia extended this ontology from your documents", |
| 1174 | autoRanBody: (rels: string[], facts: number) => |
| 1175 | `Added ${rels.join(", ")} · ${facts} fact${facts === 1 ? "" : "s"} reclassified`, |
| 1176 | autoRanOff: "Turn this off in knowledge base settings.", |
| 1177 | /* 批量:常见情形是"这些都对",一条条点是把一个决定拆成八个 */ |
| 1178 | addAll: (n: number) => `Add all ${n}`, |
| 1179 | addingAll: "Adding…", |
| 1180 | addAllLabel: "batch", |
| 1181 | addAllPartial: (keys: string[]) => |
| 1182 | `Some could not be added: ${keys.join(", ")} — the rest went through.`, |
| 1183 | proposals: "AI proposals", |
| 1184 | keyHint: "lowercase_snake_case", |
| 1185 | }, |
| 1186 | mapping: { |
| 1187 | title: "Data mapping", |
| 1188 | hint: "What business concepts point at in the database, and how they are computed. Ask only answers using confirmed definitions.", |
| 1189 | tabDefinitions: "Definitions", |
| 1190 | tabSources: "Data sources", |
| 1191 | filterAll: "All", |
| 1192 | filterProposed: "Pending", |
| 1193 | filterConfirmed: "Confirmed", |
| 1194 | filterRejected: "Rejected", |
| 1195 | searchPlaceholder: "Search concept, source or table…", |
| 1196 | total: (n: number) => `${n} total`, |
| 1197 | range: (from: number, to: number, total: number) => |
| 1198 | `${from}–${to} of ${total}`, |
| 1199 | prev: "Previous", |
| 1200 | next: "Next", |
| 1201 | empty: |
| 1202 | "No definitions yet. Mount a data source, then run Explore to have an agent propose a first batch.", |
| 1203 | emptyFiltered: "No definitions match.", |
| 1204 | rejectedHint: |
| 1205 | "Rejected ones are listed too — otherwise “why was this concept never mapped?” has no answer.", |
| 1206 | colConcept: "Concept", |
| 1207 | colSource: "Source", |
| 1208 | colDefinition: "How it is computed", |
| 1209 | colStatus: "Status", |
| 1210 | derivedBadge: "Derived", |
| 1211 | noDefinition: "(empty)", |
| 1212 | approve: "Confirm", |
| 1213 | reject: "Reject", |
| 1214 | edit: "Edit", |
| 1215 | editTitle: "Revise definition", |
| 1216 | fieldTable: "Table", |
| 1217 | fieldExpr: "Expression", |
| 1218 | fieldSql: "SQL", |
| 1219 | fieldUnit: "Unit", |
| 1220 | fieldSummary: "Summary", |
| 1221 | fieldDerived: "Derived metric (computed, not a column)", |
| 1222 | save: "Save", |
| 1223 | cancel: "Cancel", |
| 1224 | needOne: "Fill in at least one of table, expression or SQL.", |
| 1225 | history: "Revision history", |
| 1226 | historyHint: |
| 1227 | "A full snapshot of the version before each change. Kept so “how was this number computed last quarter?” has an answer.", |
| 1228 | historyEmpty: "Never revised.", |
| 1229 | historyBy: (who: string) => `Revised by ${who}`, |
| 1230 | historyUnknown: "a removed user", |
| 1231 | sourcesHint: |
| 1232 | "Read-only databases mounted here. Mounting ingests the schema so Ask knows which tables exist before writing SQL.", |
| 1233 | mount: "Mount", |
| 1234 | unmount: "Unmount", |
| 1235 | syncSchema: "Refresh schema", |
| 1236 | schemaSynced: (n: number) => `Schema ingested (${n} tables)`, |
| 1237 | // Mounted, schema did not. **Do not call this a failed mount** — the source is mounted |
| 1238 | schemaFailed: |
| 1239 | "The data source is mounted, but its schema could not be ingested — Ask cannot see which tables exist. " + |
| 1240 | "This is in the alert centre; check the connection, then use Refresh schema.", |
| 1241 | explore: "Explore mappings", |
| 1242 | exploreHint: |
| 1243 | "An agent reads these schemas and proposes metric and dimension definitions. Proposals land in Pending; Ask uses them only once confirmed.", |
| 1244 | exploreQueued: |
| 1245 | "Exploration queued — proposals will appear under Pending. If nothing can be proposed, the alert bell will say so.", |
| 1246 | sourcesEmpty: "No data sources mounted.", |
| 1247 | sourcesNoneAvailable: |
| 1248 | "No data sources registered yet — ask a deployment admin to register one.", |
| 1249 | newConn: "Register a new connection", |
| 1250 | }, |
| 1251 | review: { |
| 1252 | title: "Review", |
| 1253 | hint: "Duplicates & low-confidence facts", |
| 1254 | tabQueue: "Queue", |
| 1255 | tabHistory: "History", |
| 1256 | empty: "Nothing to review — the graph is clean.", |
| 1257 | historyEmpty: "No merges yet.", |
| 1258 | // 左栏分类导航 |
| 1259 | railPending: "Awaiting your nod", |
| 1260 | railDuplicates: "Duplicates", |
| 1261 | railConflicts: "Conflicts", |
| 1262 | railUnconfirmed: "Unconfirmed", |
| 1263 | railLowConfidence: "Low confidence", |
| 1264 | railMappings: "Data mapping", |
| 1265 | railViolations: "Axioms", |
| 1266 | railDefects: "Ontology", |
| 1267 | railDecisions: "Decisions", |
| 1268 | railMerges: "Merges", |
| 1269 | categoryEmpty: "This queue is clear.", |
| 1270 | // 决策台账 |
| 1271 | decisionsTitle: "Decisions", |
| 1272 | decisionsHint: |
| 1273 | "Every review decision, by whom and when — snapshots taken at decision time, kept even after the underlying fact is gone.", |
| 1274 | decisionsEmpty: "No decisions recorded yet.", |
| 1275 | aiActor: "AI adjudicator", |
| 1276 | decisionActions: { |
| 1277 | "review.merge": "Merged", |
| 1278 | "review.keep": "Kept apart", |
| 1279 | "fact.confirm": "Confirmed", |
| 1280 | "fact.reject": "Rejected", |
| 1281 | "fact.nod_confirmed": "Confirmed a remembered fact", |
| 1282 | "fact.nod_rejected": "Rejected a remembered fact", |
| 1283 | "fact.close": "Closed", |
| 1284 | "conflict.close_old": "Closed old", |
| 1285 | "conflict.keep_both": "Kept both", |
| 1286 | "conflict.reject_new": "Rejected new", |
| 1287 | "merge.revert": "Reverted merge", |
| 1288 | "merge.manual": "Merged manually", |
| 1289 | } as Record<string, string>, |
| 1290 | /** 升格给人裁决的原因。服务端存 code(可选 |detail),措辞在这里 */ |
| 1291 | escalated: { |
| 1292 | escalate_no_model: "No chat model — the adjudicator could not run", |
| 1293 | escalate_no_verdict: "The adjudicator returned no verdict", |
| 1294 | escalate_entity_changed: "The entity changed while being adjudicated", |
| 1295 | escalate_unsure: "The adjudicator was not confident enough", |
| 1296 | /* 名字互相包含:等值召回看不见,简称会静默变成第二个实体 */ |
| 1297 | contains: "One name contains the other", |
| 1298 | ambiguous_name: "Same name, context did not settle it", |
| 1299 | type_drift: "Same name arrived under a different type", |
| 1300 | auto_merged: "Merged by the AI adjudicator", |
| 1301 | kept_apart: "The AI adjudicator judged these different", |
| 1302 | } as Record<string, string>, |
| 1303 | duplicates: "Possible duplicates", |
| 1304 | duplicatesHint: |
| 1305 | "Same name, different context. The AI adjudicates clear cases in the background; the rest wait for you. Merging is always reversible.", |
| 1306 | stageAdjudicating: "AI adjudicating", |
| 1307 | stageHuman: "Needs your decision", |
| 1308 | similarity: (pct: number) => `${pct}% context similarity`, |
| 1309 | factsCount: (n: number) => `${n} facts`, |
| 1310 | noFacts: "No recorded facts", |
| 1311 | merge: "Merge", |
| 1312 | keep: "Keep separate", |
| 1313 | lowConfidence: "Low-confidence facts", |
| 1314 | defects: "Ontology contradicts itself", |
| 1315 | defectsHint: |
| 1316 | "Problems in the definitions themselves — no facts involved. These come first: while a definition contradicts itself, every fact-level finding that rests on it is suspect.", |
| 1317 | defectSymAsym: "Declared both symmetric and asymmetric", |
| 1318 | defectTransFunc: "Transitive and functional at once", |
| 1319 | defectCycle: "subClassOf runs in a circle", |
| 1320 | defectDisjointAncestor: "Disjoint with its own ancestor", |
| 1321 | defectInheritsDisjoint: "Inherits from two disjoint classes", |
| 1322 | defectInverseSelf: "Its own inverse — say symmetric instead", |
| 1323 | defectInverseNotMutual: "The inverse does not point back", |
| 1324 | defectSubPropertyCycle: "subPropertyOf runs in a circle", |
| 1325 | defectRulesDisagree: "Two rules produce contradicting derivations", |
| 1326 | rulesDisagreeCount: (n: number) => |
| 1327 | `${n} pair(s) of derivations held back until this is settled`, |
| 1328 | rulesDisagreeRule: ( |
| 1329 | a: string, |
| 1330 | va: string, |
| 1331 | b: string, |
| 1332 | vb: string, |
| 1333 | axiom: string, |
| 1334 | ) => `${a} on ${va} with ${b} on ${vb}, against ${axiom}`, |
| 1335 | defectNeverInstantiable: "no instance can ever satisfy it", |
| 1336 | defectFixed: "I fixed the ontology", |
| 1337 | defectAccepted: "Leave it", |
| 1338 | runInference: "Run inference", |
| 1339 | inferring: "Inferring…", |
| 1340 | inferenceNoRules: |
| 1341 | "No transitive or symmetric property is declared, so there is no rule to run.", |
| 1342 | inferenceAdded: (n: number) => `${n} facts derived`, |
| 1343 | inferenceRetracted: (n: number) => `${n} retracted`, |
| 1344 | inferenceNothing: "Nothing new to derive", |
| 1345 | inferenceCapped: (n: number) => |
| 1346 | `${n} predicate(s) hit the per-predicate limit and were not closed fully`, |
| 1347 | violations: "Axiom violations", |
| 1348 | violationsHint: |
| 1349 | "Facts that contradict axioms your ontology declares. Nothing here is a guess — a predicate that declares no axioms is never checked.", |
| 1350 | violationSelfLoop: "Points at itself", |
| 1351 | violationAsymmetry: "Both directions asserted", |
| 1352 | violationCycle: "Cycle through the transitive chain", |
| 1353 | violationFunctional: "Should hold one value, holds two", |
| 1354 | /** 签名违规(#190 / #196):一条事实的主语或宾语落在谓词声明的类型之外—— |
| 1355 | * 抽取时会掰正,采纳与合并这两条路从前绕过了检查 */ |
| 1356 | violationSignature: "Subject or object outside the declared types", |
| 1357 | /** 0017:派生撞上断言。卡片是一次审核,线索指向上游的错 */ |
| 1358 | violationDerived: "A derivation contradicts an assertion", |
| 1359 | derivedLine: (s: string, p: string, o: string) => |
| 1360 | `Derived: ${s} · ${p} · ${o}`, |
| 1361 | derivedBy: (rule: string, via: string) => `by ${rule} on ${via}`, |
| 1362 | assertedLine: (t: string) => `Asserted: ${t}`, |
| 1363 | hintStale: |
| 1364 | "The assertion has no end date and the derivation starts later. It may simply have ended.", |
| 1365 | hintDuplicate: |
| 1366 | "Two entities share this name. They may be the same one.", |
| 1367 | hintUnsure: |
| 1368 | "The assertion was extracted with low confidence. Read its sentence.", |
| 1369 | hintReadBoth: "Read both sentences and decide which one is wrong.", |
| 1370 | closeAssertion: "Give the assertion an end date", |
| 1371 | retractAssertion: "Retract the assertion", |
| 1372 | seeDuplicates: "See duplicates", |
| 1373 | openOntology: "Open the ontology", |
| 1374 | letBothStand: "Let both stand", |
| 1375 | violationVia: (p: string) => `via ${p}`, |
| 1376 | violationPath: (n: number) => `${n} facts in the cycle`, |
| 1377 | retractFact: "Data is wrong", |
| 1378 | relaxAxiom: "Axiom is wrong", |
| 1379 | acceptBoth: "Both are right", |
| 1380 | runCheck: "Run check", |
| 1381 | checkNeverRun: |
| 1382 | "Not checked yet. Contradictions are found by asking your ontology, so a run here only reports what its axioms actually say.", |
| 1383 | checking: "Checking…", |
| 1384 | checkNoAxioms: |
| 1385 | "No axioms declared, so nothing could be checked. Import an ontology that declares them.", |
| 1386 | checkFound: (n: number) => `${n} new`, |
| 1387 | /** 算出来了,但都是已经在队列里或已被裁决过的——说「3 处矛盾」而列表只有 |
| 1388 | * 一条会让人以为界面漏了东西 */ |
| 1389 | checkNothingNew: "Nothing new", |
| 1390 | checkClean: (n: number) => `${n} facts checked, no contradictions`, |
| 1391 | mappings: "Data mapping", |
| 1392 | mappingsHint: |
| 1393 | "Proposed mappings from a business concept to how it is computed. Confirm one and Ask uses it instead of guessing from the schema.", |
| 1394 | mappingDerived: "derived", |
| 1395 | // 记忆抽出、等人点头的事实(0015) |
| 1396 | pending: "Awaiting your confirmation", |
| 1397 | pendingHint: |
| 1398 | "Facts extracted from what you asked the assistant to remember. Nothing here is in the graph yet: " + |
| 1399 | "the sentence is kept, the facts wait for your nod. Confirm to add with the sentence as evidence; " + |
| 1400 | "reject and it will not be proposed again.", |
| 1401 | pendingNoPredicate: "The ontology has no relation for this; the word is the model's own.", |
| 1402 | pendingNoPredicateChip: "no relation in ontology", |
| 1403 | pendingSaidBy: (name: string) => `said by ${name}`, |
| 1404 | nodCardTitle: (n: number) => |
| 1405 | n === 1 |
| 1406 | ? "One fact extracted from this. Confirm to add it to the graph, or reject." |
| 1407 | : `${n} facts extracted from this. Confirm to add them to the graph, or reject.`, |
| 1408 | lowConfidenceHint: |
| 1409 | "Extracted with confidence below 75%. Confirm to trust, reject to remove from the graph (the ledger keeps the record).", |
| 1410 | confirm: "Confirm", |
| 1411 | reject: "Reject", |
| 1412 | confidence: (pct: number) => `${pct}%`, |
| 1413 | mergeHistory: "Merge history", |
| 1414 | mergedBy: (name: string) => `by ${name}`, |
| 1415 | mergedByAi: "by AI adjudicator", |
| 1416 | revert: "Revert", |
| 1417 | reverted: "Reverted", |
| 1418 | ongoing: "now", |
| 1419 | conflicts: "Temporal conflicts", |
| 1420 | conflictsHint: |
| 1421 | "Two facts claim the same single-valued relation. Clear successions close automatically; " + |
| 1422 | "these need a human call. Closing is reversible through the ledger.", |
| 1423 | conflictReason: { |
| 1424 | no_time: "new fact has no date", |
| 1425 | simultaneous: "same start date", |
| 1426 | low_confidence: "low confidence", |
| 1427 | } as Record<string, string>, |
| 1428 | conflictVs: "vs", |
| 1429 | conflictSince: (d: string) => `since ${d}`, |
| 1430 | closeOld: "Close old", |
| 1431 | closeOldAt: (d: string) => `Close old at ${d}`, |
| 1432 | keepBoth: "Keep both", |
| 1433 | rejectNew: "Reject new", |
| 1434 | closeAtPlaceholder: "YYYY-MM-DD", |
| 1435 | unconfirmed: "No longer stated", |
| 1436 | unconfirmedHint: |
| 1437 | "Every source that stated these facts has since been updated without them. " + |
| 1438 | "Nothing is deleted automatically — absence isn't negation. Reject extraction " + |
| 1439 | "errors, or close a fact that genuinely ended (pick the date it ended).", |
| 1440 | closeFact: "Close", |
| 1441 | closeFactAt: (d: string) => `Close at ${d}`, |
| 1442 | }, |
| 1443 | /** 通用组件文案(SearchSelect 等) */ |
| 1444 | ui: { |
| 1445 | noMatches: "No matches", |
| 1446 | keepTyping: (n: number) => `${n} more — keep typing to narrow down`, |
| 1447 | }, |
| 1448 | kbset: { |
| 1449 | title: "Knowledge base settings", |
| 1450 | general: "General", |
| 1451 | members: "Members", |
| 1452 | /* 自动扩本体开关。说明必须讲清关掉之后失去的**只是**代劳,不是留意—— |
| 1453 | 否则用户会以为关掉它就看不到未匹配的信号了 */ |
| 1454 | autoExtend: "Extend the ontology automatically", |
| 1455 | autoExtendNote: |
| 1456 | "When extraction meets a relation this ontology does not have, add it and reclassify the " + |
| 1457 | "facts that were waiting for it. Every change is listed and can be undone. Turning this " + |
| 1458 | "off does not stop Utopia from noticing — the phrases still collect under Unmatched, they " + |
| 1459 | "just wait for you to approve them.", |
| 1460 | materialize: "Materialize inferences", |
| 1461 | materializeNote: |
| 1462 | "Write facts the ontology entails into the ledger — transitive chains and symmetric pairs. Off by default: a declaration can be wrong, and this one changes the graph. Derived facts are marked and can be taken back.", |
| 1463 | inferEvery: "Re-derive every", |
| 1464 | minutes: "minutes", |
| 1465 | lastInference: (when: string) => `last run ${when}`, |
| 1466 | /* 语料语言。措辞要把"这不是界面语言"讲清楚,否则一定有人当成界面开关 */ |
| 1467 | ontologyLang: "Language of this ontology", |
| 1468 | ontologyLangNote: |
| 1469 | "Which language class and relation descriptions are written in. Those go straight " + |
| 1470 | "into the extraction prompt, so the reader is the model while it reads your documents — " + |
| 1471 | "match your documents, not your interface. Changing this does not rewrite what is " + |
| 1472 | "already here; it decides the language of descriptions written from now on.", |
| 1473 | defaultOpenLabel: "Open to everyone", |
| 1474 | defaultOpenNote: |
| 1475 | "This is the deployment's default knowledge base, so visibility is locked: every member " + |
| 1476 | "gets at least viewer access here, which guarantees nobody signs in to an empty screen. " + |
| 1477 | "It can't be deleted for the same reason. To give someone more than viewing, grant a " + |
| 1478 | "role under Members; for a private space, create a separate knowledge base and set it " + |
| 1479 | "to Restricted.", |
| 1480 | data: "Data", |
| 1481 | dataHint: |
| 1482 | "Mounted read-only databases this knowledge base may query from Chat. " + |
| 1483 | "Mounting ingests the database schema so the assistant knows the tables.", |
| 1484 | dataMount: "Mount", |
| 1485 | dataUnmount: "Unmount", |
| 1486 | dataSyncSchema: "Refresh schema", |
| 1487 | dataSchemaSynced: (n: number) => `Schema ingested (${n} tables)`, |
| 1488 | dataExplore: "Explore mappings", |
| 1489 | dataExploreHint: |
| 1490 | "An agent reads the schemas and proposes metric/dimension definitions — review them in Review before Chat uses them.", |
| 1491 | dataExploreQueued: |
| 1492 | "Exploration queued — proposals will appear in Review shortly.", |
| 1493 | dataNone: "No data sources mounted.", |
| 1494 | dataNoneAvailable: |
| 1495 | "No data sources registered yet — ask a deployment admin to register one.", |
| 1496 | dataNewConn: "Register a new connection", |
| 1497 | activity: "Activity", |
| 1498 | activityHint: |
| 1499 | "Who changed what in this knowledge base. Pure audit — records are append-only.", |
| 1500 | auditAllActions: "All actions", |
| 1501 | auditSince: "From this date", |
| 1502 | auditUntil: "Up to this date", |
| 1503 | auditClear: "Clear filters", |
| 1504 | auditTotal: (n: number) => `${n} events`, |
| 1505 | activityEmpty: "Nothing recorded yet.", |
| 1506 | deletedUser: "a removed user", |
| 1507 | // actor_id 为空的两种引擎动作:审阅队列里的自动裁决,和其余后台工作 |
| 1508 | adjudicator: "AI adjudicator", |
| 1509 | engine: "the engine", |
| 1510 | auditActions: { |
| 1511 | "entity_type.created": "created entity type", |
| 1512 | "entity_type.updated": "updated entity type", |
| 1513 | "entity_type.deleted": "deleted an entity type", |
| 1514 | "relation_type.created": "created relation type", |
| 1515 | "relation_type.updated": "updated relation type", |
| 1516 | "relation_type.deleted": "deleted a relation type", |
| 1517 | "kb.updated": "updated knowledge base settings", |
| 1518 | "kb.member_set": "set a member role", |
| 1519 | "kb.member_removed": "removed a member", |
| 1520 | "source.created": "created source", |
| 1521 | "source.updated": "updated source", |
| 1522 | "source.deleted": "deleted a source", |
| 1523 | "document.deleted": "deleted document", |
| 1524 | "ontology.imported": "imported an ontology", |
| 1525 | } as Record<string, string>, |
| 1526 | membersHintOpen: |
| 1527 | "Everyone in this deployment can already read this knowledge base, so there is no " + |
| 1528 | "viewer role to grant — list someone here only to give them write access. " + |
| 1529 | "Deployment admins always have it.", |
| 1530 | membersHintRestricted: |
| 1531 | "Only the people listed here can see this knowledge base, and their role decides " + |
| 1532 | "what they can change. Deployment admins always have access.", |
| 1533 | addMember: "Add…", |
| 1534 | roles: { viewer: "Viewer", editor: "Editor", admin: "Admin" }, |
| 1535 | remove: "Remove", |
| 1536 | noMembers: "No per-KB roles set.", |
| 1537 | noWriters: "Nobody has been given write access yet.", |
| 1538 | save: "Save", |
| 1539 | saved: "Saved", |
| 1540 | danger: "Danger zone", |
| 1541 | deleteKb: "Delete this knowledge base", |
| 1542 | deleteHint: (name: string) => |
| 1543 | `Type “${name}” to confirm. Documents, graph and sources are permanently removed.`, |
| 1544 | deleteBtn: "Delete permanently", |
| 1545 | deleteRowTitle: "Delete this knowledge base", |
| 1546 | deleteRowHint: "Documents, graph and sources are removed permanently.", |
| 1547 | deleteRowBtn: "Delete", |
| 1548 | }, |
| 1549 | members: { |
| 1550 | title: "Deployment users", |
| 1551 | systemAdmin: "System admin", |
| 1552 | remove: "Remove", |
| 1553 | deactivate: "Deactivate", |
| 1554 | deactivateHint: |
| 1555 | "Cuts off access everywhere — sign-in and any token already issued. What they did stays attributed to them.", |
| 1556 | deactivatedTitle: "Deactivated accounts", |
| 1557 | deactivatedHint: |
| 1558 | "They cannot sign in and do not appear in any member list. What they did is still attributed to them — that is why the account is kept rather than deleted.", |
| 1559 | reactivate: "Restore", |
| 1560 | deactivateConfirm: (name: string) => |
| 1561 | `Deactivate ${name}? They lose access everywhere. Their past decisions stay on record.`, |
| 1562 | pickUser: "Select a user to add…", |
| 1563 | add: "Add", |
| 1564 | roles: { |
| 1565 | owner: "Owner", |
| 1566 | admin: "Admin", |
| 1567 | editor: "Editor", |
| 1568 | viewer: "Viewer", |
| 1569 | }, |
| 1570 | }, |
| 1571 | }; |
| 1572 | |
| 1573 | /** 语言包的结构契约。其余语言包写成 `const zh: Strings = {…}`,漏一条即编译失败 */ |
| 1574 | export type Strings = typeof en; |