Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
docs: say where TeamHub's English is worded for the interface language
yunhe452c96730fda
diff --git a/apps/teamhub/AGENTS.md b/apps/teamhub/AGENTS.mdindex 792ac91a..d89a8952 100644--- a/apps/teamhub/AGENTS.md+++ b/apps/teamhub/AGENTS.md@@ -120,6 +120,11 @@ Go service owning Human HTTP/SSE, Agent callbacks, and active product state.extra, or wrongly bound route. Handlers are `App` methods that read boundquery and header parameters with `contractParams[T]` and path parameterswith `c.Param`.+- Text TeamHub writes for a person to read stays English and ships with the+ meaning the client words it from: a status or error with a stable code, a+ card with its kind and fields, catalog text with its id. Add the code (an+ enum in `contracts/openapi`) beside the English rather than wording it per+ language here; the client keeps the English for a code it does not know.- `internal/app` opens no transaction and calls no store queries: handlerscall a domain service and map its errors. `TestAppLayerHoldsNoTransactionsOrQueries`(`tests/integration/layout`) fails on a transaction, SQL, a `store.Queries` ordiff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.mdindex 988002fd..fe9a8485 100644--- a/apps/web/AGENTS.md+++ b/apps/web/AGENTS.md@@ -284,8 +284,22 @@ build:assets` to check the initial JS budget.stored as a reason or a key and worded when it is shown, so it follows alanguage switch and a reload. `pending-message-failure.ts` is the pattern:the Outbox stores `failure.reason`, the hook words it with `t`.- - Names and text that come from TeamHub or from people (Agent names, message- previews, server error messages) are data and are shown as they are.+ - Names and text that people or Agents wrote (Agent names, message+ previews, a published template) are data and are shown as they are.+ - TeamHub's own English is worded here from what it means, never translated+ on the server: a status from its stable code+ (`agent-availability-text.ts`), a card's ask from its kind and fields+ (`card-prompts.ts`). A code or kind this client does not know shows+ TeamHub's English.+ - Errors are worded from the code only when TeamHub's message says nothing+ more (`teamhub-error-text.ts`: expired sign-in, rate limit, server error,+ a response without a TeamHub body). `FORBIDDEN`, `CONFLICT`, `NOT_FOUND`,+ `INVALID_REQUEST` and the like keep TeamHub's message, which says what to+ do; a case worth its own wording needs its own code from TeamHub.+ - Fixed catalog text (`web-search-backend-text.ts`, `app-groups.ts`,+ `builtin-template-text.ts`, `runtime-model-label.ts`) keeps a copy by id+ for other languages only, through `teamHubCatalogText`: English shows+ TeamHub's text, so a change on the server shows at once.- Add a language: add it to `LANGUAGES` and `catalogLoaders` in`src/i18n/language.ts` and add `src/i18n/locales/<tag>.json`. Catalogsload on demand, so English users download none.