Merge C24 portal in English and Turkish

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-05 00:16:03 +02:00
commit 88d63fcb76
117 files changed
+8169 -2010

No files matched your search

+28
View File
@@ -1734,6 +1734,34 @@ thing to get right is the health check: point it at `/ready`, not `/health`.
so a load balancer using it would send half the traffic to something that
refuses every request.
## The portal's language
The web portal — the landing page, sign-up and sign-in, the account and chat
pages, and the administrators' pages — speaks English and Turkish. Each person
gets, in this order:
1. the language they chose with the switcher at the foot of every page, which
is remembered in a cookie (`llmgw_lang`) for a year;
2. otherwise the first language their browser asks for that the portal speaks;
3. otherwise the server's own default:
```yaml
# /etc/llmgw/server.yaml
landing:
language: tr # en or tr; empty is English
```
A code the portal does not speak stops the server starting, rather than
quietly serving English. Figures and dates follow the page's language: a
Turkish page writes 1.234,5 and 04.10.2026. Messages that come from the
control plane itself — a node's warnings, an engine's errors — are shown as
they were written, in English. The API, the CLI and the console are English.
Adding a language is adding a directory: `internal/web/locales/<code>/` with
the same files and keys as `locales/en/`, and its `_meta.*` entries saying how
it writes numbers and dates. The tests refuse a catalogue that lacks a key a
page uses.
## Single sign-on
People can sign in through your identity provider — Keycloak, Entra ID,
+9
View File
@@ -95,6 +95,7 @@ rather than repeated.
| `latency_budget` | `time.Duration` | [JudgePolicy](#judgepolicy) |
| `contact` | `string` | [Landing](#landing) |
| `notice` | `string` | [Landing](#landing) |
| `language` | `string` | [Landing](#landing) |
| `docs_sign_in` | `bool` | [Landing](#landing) |
| `bin` | `string` | [LlamaCppConfig](#llamacppconfig) |
| `parallel` | `int` | [LlamaCppConfig](#llamacppconfig) |
@@ -908,6 +909,14 @@ channel name. Rendered as a link when it is one, as text otherwise.
Notice is an optional line of your own, for whatever the reader needs to
know that this page cannot guess.
### `language`
`string`
Language is what the web portal speaks to someone who has not chosen
a language with the switcher at the foot of every page and whose
browser asks for none it speaks: "en" or "tr". Empty is English.
### `docs_sign_in`
`bool`