readme: document server-wide message localization (locale/lang catalogs, fr+es)
This commit is contained in:
parent
04671733d2
commit
9dcc269f45
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -49,6 +49,11 @@ operational limit exposed as a config key.
|
||||||
layer (`ws://` / `wss://`), and the PROXY protocol (v1/v2) behind a load balancer.
|
layer (`ws://` / `wss://`), and the PROXY protocol (v1/v2) behind a load balancer.
|
||||||
- **GeoIP** — a MaxMind `.mmdb` reader with a `G:<cc>` geoban, `GEOIP` command, and
|
- **GeoIP** — a MaxMind `.mmdb` reader with a `G:<cc>` geoban, `GEOIP` command, and
|
||||||
a WHOIS country line.
|
a WHOIS country line.
|
||||||
|
- **Localization** — a server-wide message locale: `locale fr` renders every
|
||||||
|
numeric, notice and server message from a `lang/<code>.conf` catalog, while
|
||||||
|
protocol tokens, IDs, user data and the S2S wire stay canonical. Ships **French**
|
||||||
|
and **Spanish**, English is a zero-cost passthrough, and it switches live on
|
||||||
|
`REHASH` — with no per-message cost on the broadcast hot path.
|
||||||
- **Control & observability** — a token-authenticated JSON-RPC plane over HTTP, and
|
- **Control & observability** — a token-authenticated JSON-RPC plane over HTTP, and
|
||||||
an optional OpenMetrics/Prometheus endpoint.
|
an optional OpenMetrics/Prometheus endpoint.
|
||||||
|
|
||||||
|
|
@ -95,6 +100,11 @@ settings apply on `REHASH` without a restart. Three helper subcommands round it
|
||||||
- `echoircd checkconfig [file]` — parse a config and dump its keys, to validate one or diff two.
|
- `echoircd checkconfig [file]` — parse a config and dump its keys, to validate one or diff two.
|
||||||
- `echoircd rehash` — signal the running server to reload its config in place.
|
- `echoircd rehash` — signal the running server to reload its config in place.
|
||||||
|
|
||||||
|
Message localization is catalog-driven: set `locale fr` (or `es`) and the server
|
||||||
|
loads `lang/<code>.conf` and renders its messages in that language, switchable live
|
||||||
|
on `REHASH`; English is the default. Add a language by dropping in a translated
|
||||||
|
`lang/<code>.conf` — no rebuild.
|
||||||
|
|
||||||
Your live `echoircd.conf` is gitignored — it holds secrets (oper password, cloak
|
Your live `echoircd.conf` is gitignored — it holds secrets (oper password, cloak
|
||||||
key, link password), so never commit it. Generate a TLS certificate into `tls/`
|
key, link password), so never commit it. Generate a TLS certificate into `tls/`
|
||||||
with the one-liner in the example config.
|
with the one-liner in the example config.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue