Skip to content

eaxCollab inbox language

PlatformHow-to guideStarterProEnterpriseView as Markdown

The eaxCollab web inbox shows its own words (menus, buttons, views, refusals) in your language: English, French, German, Italian or Spanish. Your choice is kept with your account on the server, so it follows you to every browser, and the Daily digest is written in it.

  1. Once signed in: open Me and choose the language under Language. The inbox switches at once, without a reload, and saves the choice to your account. If the server refuses to save it, the reason is shown under the picker; the inbox still uses the language in this browser.
  2. Before you sign in: you can also pick the language on the sign-in page. Each language is listed in its own name. It is remembered in this browser, and saved to your account when you sign in, but only if your account has no language yet (see below).

When you sign in, in any browser, the inbox applies the language saved with your account. It wins over the browser’s own choice, and is remembered in that browser too. Without a saved language, the inbox starts in the browser’s choice, else the first of the browser’s languages the inbox has, else English.

The sign-in page never replaces your saved language

Section titled “The sign-in page never replaces your saved language”

A language picked on the sign-in page goes to your account only when the account has none yet. A saved language is never overwritten from the sign-in page: it is applied instead, and the sign-in page’s pick stays in that browser only. To change a saved language, use Me.

Before saving, the inbox asks the server for your account’s language. If the server cannot read the stored languages, the inbox saves nothing: an unreadable store is never taken for “no language yet”. The sign-in page’s pick is used for one sign-in only.

The sign-in card does this with one request: POST /api/prefs {"lang":"fr","if_unset":true} stores the language only when the member holds no choice, and answers {"lang":<held>,"set":<stored>}. if_unset needs a language.

The server keeps each member’s language in the bucket chat_prefs, under the member’s id, and only the member themselves can read or change it: the inbox calls GET /api/prefs and POST /api/prefs {"lang":"fr"} ("" clears it) with the signed-in session, and a request cannot name another member. The values are exactly en, fr, de, it, es or empty; anything else is refused (bad_lang). The signed-in session also carries the language ("lang", empty without a choice).

  • The inbox’s own texts, in every view.
  • Messages from the server: a refusal (for example a request the server turned down) is worded from its code in your language; a code the inbox has no words for shows the server’s own detail inside a translated sentence. The name of the server’s Daily digest conversation is drawn in your language too.
  • The refusals of the passkey enrolment page.

The Daily digest itself (its card and its text) is written by the server in its recipient’s language, as saved with their account. Headings, sentences, plurals, durations, dates, amounts and the audit chain’s status follow it, including why the chain was not checked (“the archive did not answer”, for example).

The server flag -digest-lang (en, the default, fr, de, it or es) is the language for a recipient who has not chosen one. It is also used when the stored languages cannot be read; the server logs that. An unknown value refuses the server’s start.

The digest card is one signed body, so each digest is written in one language for every device. Member ids, actions, states, approval and thread ids, and what requesters wrote stay as they are.

eaxcollabctl --data <dir> digest run asks the running server for today’s digest and prints the answer, digest for <date>: <status>. When the archive is not answering yet (just after a start), the digest first waits up to 2 minutes for it, then builds the digest, so the answer can take that long. The command waits 3 minutes by default (--timeout).

Servers set up before this version have gateway and digest identities without the rights to the language store. eaxcollab-server refuses to start with them: its log names the identity and the command to run. Upgrade both in place, keeping their keys, then start the server:

eaxcollabctl --data <dir> service reissue s-gateway
eaxcollabctl --data <dir> service reissue s-digest

Use your gateway’s id if it is not s-gateway. The bucket chat_prefs is created at the start. No member has a saved language after the upgrade: each member’s first choice in Me, or at their first sign-in from the sign-in page, saves it.

When the server refuses a request from an agent (for example an approval request whose expiry is longer than its action allows: 24 hours for publishing a post), it records the refusal in its audit and now also writes one line to its log, sequencer: ingress refused, with the event, the actor, the action, the object and the reason. The line never carries the request’s body. Refusals for rate or duplicates are logged at debug level only. Before, such a request was acknowledged to the agent and then appeared nowhere in the log.

Refused requests are answered to the agent

Section titled “Refused requests are answered to the agent”

rpc.<agent>.refused carries refusal notices for the agent’s own refused requests. Only the sequencer publishes them (core NATS, not stored, header Eax-Rpc: refusal). The body is {"v":"eaxcollab.refusal.v1","id","code","action","ts"}. Duplicates and human requests get no notice. Each connection of the agent receives it.

In the agent SDK, when the sequencer refuses a request, Await and Call return at once with a *client.RefusedError; test it with errors.Is(err, client.ErrRefused) and read Code, the stable audit event (for example EC_INGRESS_REFUSED_ACL, EC_APR_REFUSED_POLICY, EC_RPC_REFUSED_MATRIX). The reason stays in the audit record, which an administrator reads.

If the notice itself cannot be delivered, the server logs sequencer: refusal notice not delivered: the refusal is audited and only the agent’s notice was lost; the request is not retried. Limit: administrator native clients still wait for their deadline on a refusal.

  • Messages, cards and approval requests are shown as their authors wrote them, in whatever language that was.
  • The meaning of an approval is shown word for word as the server gives it, in every language.
  • What you sign is identical in every language. The signature applies to that exact meaning; the requests the inbox sends carry only codes (approve or reject, passkey or password), the payload hash and your reason as you typed it. Choosing another language changes nothing that is signed or recorded.
  1. Open Me and choose another language: the view’s headings and buttons change at once, and a message or an approval’s meaning stays as it was written.
  2. Sign in from another browser: the inbox opens in the language you chose.
  3. The next Daily digest is written in that language.