bots-garden/sidekickspublic Fork
⑂ v1.0.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. 6713ff0 · on v1.0.0 · k33g · 26d ago
0005-interface-language.md · 28 lines · 2.3 KBmarkdown
Blame HistoryOpen raw

ADR 0005 — Interface language: English by default, French available

  • Status: accepted
  • Date: 2026-10-29
  • Issues: #15, #18

Context

Until the end of milestone M2, every label of the interface was written in French in the Svelte components, and ui.language defaulted to fr; only the configuration error messages had an English catalogue. The owner asked for an English interface. French remains useful: the owner and the first users speak it, and the test prompts of the agents are in French.

Decision

  • English is the default language: ui.language defaults to en (schema and config.DefaultLanguage), and the default configuration file is written in English (comments, channel general).
  • French stays available with ui: language: fr. The switch applies live, like any configuration change.
  • Every text of the interface lives in one catalogue, frontend/src/lib/i18n/messages.ts: an en object whose keys are the reference, and a fr object typed Record<MessageKey, string>, so a missing French key fails svelte-check. A unit test checks that both catalogues have the same keys and the same {variables}.
  • t(key, vars) reads a reactive $state locale; setLanguage is called each time the configuration is read. Configuration errors keep their Go catalogue (internal/config/problems.go), in the same language.
  • Agent titles, descriptions and channel names come from the user's file and are never translated.

Rejected alternatives

  • An i18n library (svelte-i18n, Paraglide): a dependency and a build step for two languages and about 130 keys; a typed object does the same with no runtime cost.
  • English only: simpler, but loses the French interface that the first users want.
  • Following the operating system's language: unpredictable for screenshots and test guides; an explicit key in the file is visible and versioned.

Consequences

  • Test guides and tutorials quote the English labels; the French tutorial that writes its own configuration sets language: fr and quotes the French ones.
  • Adding a label means adding an en key and its fr translation; the type checker and the test refuse anything less.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ADR 0005 — Interface language: English by default, French available

- **Status**: accepted
- **Date**: 2026-10-29
- **Issues**: [#15](../../.tickets/issues/0015-vue-conversation-et-zone-de-saisie.yaml), [#18](../../.tickets/issues/0018-panel-settings-editeur-yaml-integre.yaml)

## Context

Until the end of milestone M2, every label of the interface was written in French in the Svelte components, and `ui.language` defaulted to `fr`; only the configuration error messages had an English catalogue. The owner asked for an English interface. French remains useful: the owner and the first users speak it, and the test prompts of the agents are in French.

## Decision

- English is the default language: `ui.language` defaults to `en` (schema and `config.DefaultLanguage`), and the default configuration file is written in English (comments, channel `general`).
- French stays available with `ui: language: fr`. The switch applies live, like any configuration change.
- Every text of the interface lives in one catalogue, `frontend/src/lib/i18n/messages.ts`: an `en` object whose keys are the reference, and a `fr` object typed `Record<MessageKey, string>`, so a missing French key fails `svelte-check`. A unit test checks that both catalogues have the same keys and the same `{variables}`.
- `t(key, vars)` reads a reactive `$state` locale; `setLanguage` is called each time the configuration is read. Configuration errors keep their Go catalogue (`internal/config/problems.go`), in the same language.
- Agent titles, descriptions and channel names come from the user's file and are never translated.

## Rejected alternatives

- **An i18n library** (svelte-i18n, Paraglide): a dependency and a build step for two languages and about 130 keys; a typed object does the same with no runtime cost.
- **English only**: simpler, but loses the French interface that the first users want.
- **Following the operating system's language**: unpredictable for screenshots and test guides; an explicit key in the file is visible and versioned.

## Consequences

- Test guides and tutorials quote the English labels; the French tutorial that writes its own configuration sets `language: fr` and quotes the French ones.
- Adding a label means adding an `en` key and its `fr` translation; the type checker and the test refuse anything less.