Skip to content

feat(i18n): english and french events, forms and UI, api errors and logs in english - #133

Merged
albanm merged 12 commits into
masterfrom
i18n-events
Nov 16, 2026
Merged

albanm merged 12 commits into
masterfrom
i18n-events

Conversation

@BatLeDev

@BatLeDev BatLeDev commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Processings goes fr/en: the events, the forms and the UI follow the session language. API errors, logs and the per-processing API document are in English.

  • Events: create, patch, delete and trigger (api), plus log-error, finish-ok, finish-error and disabled (worker), send { en, fr } titles. The webhook trigger keeps the trigger topic key with its own text. resource.title is the plain processing title, and the worker names itself in originator.internalProcess.title (it was name, so the events UI showed "Internal process").
  • Forms and UI: processing/schema.js and permission/schema.js use an English base with French in x-i18n-*, rendered with xI18n. Plugin titles, descriptions and groups ({ en, fr } values of the registry) read French in French sessions and English in every other session language, each falling back on the other one (ui/src/utils/localized-text.ts, a copy of the reading rule of registry's ui/src/utils/localized.ts). Dates and numbers are localized. The document lang follows the session. vue-i18n runs in composition mode with fallbackLocale: 'en'. The last hard-coded strings move to <i18n> blocks.
  • English: registry, trigger and run errors, the worker exit diagnosis (heap OOM, SIGKILL, unexpected exit), run log messages, and the OpenAPI document served by GET /processings/:id/api-docs.json. Specs that asserted the French wording are updated.
  • Fix: the timezone of a scheduled trigger was never shown (operator precedence in timezoneLabel); a missing timezone reads UTC.
  • Deps: lib-utils 1.15.0, lib-common-types 1.28.1, lib-vuetify 2.5.4 (the lib side of the fr/en pass, feat(i18n): localized field dates, english schema bases, i18n skill rules lib#70).

Why: part of the platform-wide fr/en pass (data-fair/catalogs#46, portals, data-fair, simple-directory, events, agents), following the data-fair-service skill (references/events.md, references/i18n.md).

Heads-up:

  • Topic keys are unchanged, so existing subscriptions keep working.
  • Users who read French in the run logs and exit diagnoses will now see English. Plugin-authored messages are untouched.
  • lastRun / nextRun titles become run last run / run next run, which renames the generated types (nothing imports them).

The processing events of the api (create, patch, delete, trigger) and the run events of the
worker (log-error, finish-ok, finish-error, disabled) now send { en, fr } titles, written next
to their emitter as in the stack-wide events convention.
The resource title of the run events is the plain processing title, no longer a French sentence.
The topic keys are unchanged.
The events UI reads internalProcess.title: with a name only, the run events showed a generic
"Internal process" instead of "Processings Worker".
…er event

The trigger-manual default was never used, both calls passed their text.
@BatLeDev
BatLeDev marked this pull request as ready for review November 13, 2026 10:06
- processing and permission schemas: english base keywords, the existing french moved to
  x-i18n-title / x-i18n-description / x-i18n-label / x-i18n-addItem with a fr value; the
  permission profiles use short technical titles (ReadProfile, ExecProfile) with the full
  english text in x-i18n-title.en; no import used the old generated type names
- agent-surface golden regenerated for the new schema titles
- plugin title, description and group taken in the session language, falling back on the
  other one (localizedText helper), instead of always fr
- localized dayjs formats (lll, L LT) instead of hard-coded french date formats
- App.vue sets the document lang from the session; createI18n gets legacy: false and
  fallbackLocale: 'en'
- "Status", "Plugin" and the config section title through <i18n> keys, the auth error
  of the new processing page too; private-access i18n block lists en first
- task progress numbers formatted with the session locale
- registry errors (403 no access, 404 not found, 502 unavailable), the already scheduled /
  running / requested run errors, the wrong webhook key and inactive processing answers,
  and the missing plugin source file error are now written in english, like the rest of
  the logs and errors of the service
- unit and api specs asserting on those messages updated, two french comments translated
- worker: the end-of-task diagnosis (JavaScript heap overflow, SIGKILL,
  unexpected exit) in english; the french user lines are dropped, the user
  metrics reuse the english ones
- worker: run log messages (disabled processing, exhausted time, maintenance
  interruption, resume, unavailable plugin, log size limit, interrupted /
  finished run) and the axios retry warning in english
- comments and specs that described or asserted the french wording updated
  (exit-code unit spec, memory-oom, broken-plugin and log-flood api specs)
@BatLeDev BatLeDev changed the title feat(events): english and french titles of the processing and run events feat(i18n): english and french events, forms and UI, api errors and logs in english Nov 13, 2026
@github-actions github-actions Bot added feature and removed feature labels Nov 13, 2026
BatLeDev and others added 4 commits November 13, 2026 16:42
The error log line fell back to a hardcoded French 'Erreur HTTP' when the response had no
statusText; it now uses the httpError key of the component's i18n block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The OpenAPI document served by GET /processings/:id/api-docs.json was entirely in French, while
the stack's API docs, logs and errors are in English. Rewrite its titles, summaries,
descriptions and parameter texts in English, same structure and keys.

Also put en before fr in the { en, fr } scope descriptions and tag titles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ssions

- "reserved for", "allows triggering" and "Processings API" in the schemas and API docs
- localizedText: every non-French session language reads the English text of registry
  values (de/es/it/pt sessions got French), empty strings fall back on the other language

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Operator precedence made timezoneLabel return the bare timezone (or undefined) instead of
" — Timezone: X"; a missing timezone now reads UTC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added feature and removed feature labels Nov 16, 2026
BatLeDev and others added 2 commits November 16, 2026 09:49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….5.4

The lib releases of the fr/en pass: dates in the session language for non French locales,
English byte units, English schema bases, translated search-address and date-match-filter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added feature and removed feature labels Nov 16, 2026
@albanm
albanm merged commit dc1f3bf into master Nov 16, 2026
5 checks passed
@albanm
albanm deleted the i18n-events branch November 16, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants