Every template and handler message in internal/web goes through a JSON
catalogue under internal/web/locales/<code>/, with English as the fallback.
The language is the person's choice (a cookie set by /_lang/{code}), else
Accept-Language, else landing.language. Tests refuse a key some language
lacks, a translation with other arguments than English, and template text
left in English.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
37 lines
1.4 KiB
JSON
37 lines
1.4 KiB
JSON
{
|
|
"guard.title": "Guardrails",
|
|
"guard.sub": "What the policies did, where, and by which rule — names and counts, never what was written.",
|
|
"guard.policies": "Policies",
|
|
"guard.defined_in": "Defined in <code>server.yaml</code>:",
|
|
"guard.applied": "Applied to every request:",
|
|
"guard.col.scope": "Scope",
|
|
"guard.col.who": "Who",
|
|
"guard.col.policy": "Policy",
|
|
"guard.scope.org": "org",
|
|
"guard.scope.team": "team",
|
|
"guard.scope.project": "project",
|
|
"guard.scope.user": "user",
|
|
"guard.scope.key": "key",
|
|
"guard.attached_nowhere": "Attached nowhere else. <code>llmgw ctl guard attach project:ORG/TEAM/PROJECT POLICY</code> attaches one.",
|
|
"guard.no_policies": "No policies: add a <code>guard:</code> section to <code>server.yaml</code> (docs/guardrails.md).",
|
|
|
|
"guard.what_they_did": "What they did",
|
|
"guard.over_last": "Over the last",
|
|
"guard.col.where": "Where",
|
|
"guard.col.action": "Action",
|
|
"guard.col.category": "Category",
|
|
"guard.col.requests": "Requests",
|
|
"guard.personal": "personal",
|
|
"guard.action.flagged": "flagged",
|
|
"guard.action.redacted": "redacted",
|
|
"guard.action.blocked": "blocked",
|
|
"guard.nothing": "Nothing flagged, redacted or blocked.",
|
|
|
|
"guard.recent": "Recent",
|
|
"guard.col.when": "When (UTC)",
|
|
"guard.col.request": "Request",
|
|
"guard.col.model": "Model",
|
|
"guard.col.status": "Status",
|
|
"guard.request_hint": "<code>llmgw ctl request ID</code> says what else a request went through."
|
|
}
|