Repository navigation
feat: internationalized events and session language in the UI - #46
Merged
Merged
Conversation
- Events sent to the events service carry their title and body in fr and en, from a single table in shared/event-texts.ts (same pattern as portals). The resource title is now the plain catalog title; the associated catalog moves to the event body. Fixes the "à échoué" and "resource" typos. - The document lang follows the session language instead of the fixed "en". - Log dates use the localized dayjs format, resource sizes the session locale. - vue-i18n falls back to English on a missing key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…anguage replaces it
…able
The { en, fr } titles were keys of a table in shared/, filled by an interpolation helper
and checked by a unit test. Each emitter now writes its own texts:
- sendCatalogEvent and sendImportEvent hold the titles of their actions
- the publication creation writes its title where it is sent
- worker/src/lib/events.ts sends the import and publication failures, once instead of three
copies of the same event (the internal process carries a title, as the event schema says)
- topic keys unchanged
This was referenced Nov 13, 2026
Merged
BatLeDev
marked this pull request as ready for review
November 13, 2026 10:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Send events to the events service in English and French, and make the UI follow the session language.
{ en, fr }; events picks the language of each subscription. The texts are written next to the function that sends the event (sendCatalogEvent,sendImportEvent, the publication route, andworker/src/lib/events.tsfor the import and publication failures), with no shared text table. This is the standard of thedata-fair-serviceskill (references/events.md, data-fair/lib), which takesapi/src/imports/service.tsas its model.resource.titleis now the plain catalog title instead of "Catalogue associé : …". Titles fall back to the id when the remote resource or the dataset has no title.originator.internalProcess.title(it wasname, which the events UI does not show).<html lang>follows the session language; the staticlangofindex.htmlstaysen(RGAA 8.3).L LTformat; resource sizes in the explorer use the session locale.Why: catalogs notifications were French-only strings, so English-speaking users received them in French; part of the platform-wide fr/en pass of the events (with portals, processings, data-fair, simple-directory, customers, agents). Logs and API errors stay in English, by convention.
No release order: the events service already accepts
{ en, fr }titles.